[PATCH 1/2] powerpc/mm/64s: Drop pgd_huge()
Christophe Leroy
christophe.leroy at csgroup.eu
Sun Sep 4 01:06:27 AEST 2022
Le 03/09/2022 à 14:36, Michael Ellerman a écrit :
...
>
> However in commit ba95b5d03596 ("powerpc/mm/book3s/64: Rework page table
> geometry for lower memory usage") the page table layout was reworked to
> shrink the size of the PGD.
>
> As a result the 16GB page size now fits at the PUD level when using 64K
> base page size.
>
> Therefore there are no longer any supported configurations where
> pgd_huge() can be true, so drop the definitions for pgd_huge(), and
> fallback to the generic definition which is always false.
We also have pgd_huge defined as always false in:
arch/powerpc/include/asm/page.h
arch/powerpc/include/asm/nohash/pgtable.h
Those could be removed as well as there is a default definition in
include/linux/hugetlb.h
And then all uses of pgd_huge() in the core mm can be dropped because
powerpc was the only user.
Christophe
More information about the Linuxppc-dev
mailing list