Commit a46e289f authored by Mao Minkai's avatar Mao Minkai Committed by guzitao
Browse files

sw64: mm: fix pmd_present() for THP

Sunway inclusion
category: bugfix
bugzilla: https://gitee.com/openeuler/kernel/issues/I73O8A



--------------------------------

When splitting a pmd, _PAGE_VALID will be temporarily cleared, which
results in pmd_present() return false.

Since _PAGE_PSE will remain set, check it to avoid this issue.

Signed-off-by: default avatarMao Minkai <maominkai@wxiat.com>
Reviewed-by: default avatarHe Sheng <hesheng@wxiat.com>
Signed-off-by: default avatarGu Zitao <guzitao@wxiat.com>
parent d8569cb9
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment