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: replace READ_ONCE() in pud_trans_unstable()

Replace READ_ONCE() with the existing standard page table accessor for PUD
aka pudp_get() in pud_trans_unstable(). This does not create any
functional change for platforms that do not override pudp_get(), which
still defaults to READ_ONCE().

Link: https://lkml.kernel.org/r/20260227040300.2091901-1-anshuman.khandual@arm.com
Signed-off-by: Anshuman Khandual <anshuman.khandual@arm.com>
Acked-by: David Hildenbrand (Arm) <david@kernel.org>
Acked-by: SeongJae Park <sj@kernel.org>
Reviewed-by: Lorenzo Stoakes <lorenzo.stoakes@oracle.com>
Cc: Mike Rapoport <rppt@kernel.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>

authored by

Anshuman Khandual and committed by
Andrew Morton
3d56d731 4d267106

+1 -1
+1 -1
include/linux/pgtable.h
··· 2004 2004 { 2005 2005 #if defined(CONFIG_TRANSPARENT_HUGEPAGE) && \ 2006 2006 defined(CONFIG_HAVE_ARCH_TRANSPARENT_HUGEPAGE_PUD) 2007 - pud_t pudval = READ_ONCE(*pud); 2007 + pud_t pudval = pudp_get(pud); 2008 2008 2009 2009 if (pud_none(pudval) || pud_trans_huge(pudval)) 2010 2010 return 1;