Files
linux/arch
Hongchen Zhang 9920a52362 LoongArch: Let pmd_present() return true when splitting pmd
[ Upstream commit ddc1729b07 ]

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 b65399f611 ("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>
Signed-off-by: Sasha Levin <sashal@kernel.org>
2023-09-13 09:42:25 +02:00
..
2023-09-13 09:42:21 +02:00
2023-09-13 09:42:20 +02:00
2023-08-11 12:08:11 +02:00
2023-08-08 20:03:46 +02:00