mirror of
https://github.com/torvalds/linux.git
synced 2024-11-10 06:01:57 +00:00
mm/debug_vm_pgtable: test pmd_leaf() behavior with pmd_mkinvalid()
An invalidated pmd should still cause pmd_leaf() to return true. Let's test for that to ensure all arches remain consistent. Link: https://lkml.kernel.org/r/20240501144439.1389048-1-ryan.roberts@arm.com Signed-off-by: Ryan Roberts <ryan.roberts@arm.com> Reviewed-by: Anshuman Khandual <anshuman.khandual@arm.com> Reviewed-by: David Hildenbrand <david@redhat.com> Cc: Catalin Marinas <catalin.marinas@arm.com> Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
This commit is contained in:
parent
a94032b35e
commit
b0d7e15a9f
@ -982,6 +982,7 @@ static void __init pmd_thp_tests(struct pgtable_debug_args *args)
|
||||
#ifndef __HAVE_ARCH_PMDP_INVALIDATE
|
||||
WARN_ON(!pmd_trans_huge(pmd_mkinvalid(pmd_mkhuge(pmd))));
|
||||
WARN_ON(!pmd_present(pmd_mkinvalid(pmd_mkhuge(pmd))));
|
||||
WARN_ON(!pmd_leaf(pmd_mkinvalid(pmd_mkhuge(pmd))));
|
||||
#endif /* __HAVE_ARCH_PMDP_INVALIDATE */
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user