diff options
author | Hongchen Zhang <zhanghongchen@loongson.cn> | 2023-06-15 14:35:52 +0800 |
---|---|---|
committer | Huacai Chen <chenhuacai@loongson.cn> | 2023-06-15 14:35:52 +0800 |
commit | ddc1729b07cc84bb29f577698b8d2e74a4004a6e (patch) | |
tree | aa059fbf86c4d94662b3e9378a2e7d9848935c2d /lib/xarray.c | |
parent | 858fd168a95c5b9669aac8db6c14a9aeab446375 (diff) |
LoongArch: Let pmd_present() return true when splitting pmd
When we split a pmd into ptes, pmd_present() and pmd_trans_huge() should
return true, otherwise it would be treated as a swap pmd.
This is the same as arm64 does in commit b65399f6111b ("arm64/mm: Change
THP helpers to comply with generic MM semantics"), we also add a new bit
named _PAGE_PRESENT_INVALID for LoongArch.
Signed-off-by: Hongchen Zhang <zhanghongchen@loongson.cn>
Signed-off-by: Huacai Chen <chenhuacai@loongson.cn>
Diffstat (limited to 'lib/xarray.c')
0 files changed, 0 insertions, 0 deletions