Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

mm/debug_vm_pgtable: replace WRITE_ONCE() with pxd_clear()

Replace WRITE_ONCE() with generic pxd_clear() to clear out the page table
entries as required. Besides this does not cause any functional change as
well.

Link: https://lkml.kernel.org/r/20260227061204.2215395-1-anshuman.khandual@arm.com
Signed-off-by: Anshuman Khandual <anshuman.khandual@arm.com>
Suggested-by: Ryan Roberts <ryan.roberts@arm.com>
Acked-by: David Hildenbrand (Arm) <david@kernel.org>
Ackeed-by: SeongJae Park <sj@kernel.org>
Cc: Ryan Roberts <ryan.roberts@arm.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>

authored by

Anshuman Khandual and committed by
Andrew Morton
4d267106 99573ef4

+2 -2
+2 -2
mm/debug_vm_pgtable.c
··· 445 445 * X86 defined pmd_set_huge() verifies that the given 446 446 * PMD is not a populated non-leaf entry. 447 447 */ 448 - WRITE_ONCE(*args->pmdp, __pmd(0)); 448 + pmd_clear(args->pmdp); 449 449 WARN_ON(!pmd_set_huge(args->pmdp, __pfn_to_phys(args->fixed_pmd_pfn), args->page_prot)); 450 450 WARN_ON(!pmd_clear_huge(args->pmdp)); 451 451 pmd = pmdp_get(args->pmdp); ··· 465 465 * X86 defined pud_set_huge() verifies that the given 466 466 * PUD is not a populated non-leaf entry. 467 467 */ 468 - WRITE_ONCE(*args->pudp, __pud(0)); 468 + pud_clear(args->pudp); 469 469 WARN_ON(!pud_set_huge(args->pudp, __pfn_to_phys(args->fixed_pud_pfn), args->page_prot)); 470 470 WARN_ON(!pud_clear_huge(args->pudp)); 471 471 pud = pudp_get(args->pudp);