Re: [PATCH 1/2] powerpc/mm/64s: Drop pgd_huge()

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 




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




[Index of Archives]     [Linux ARM Kernel]     [Linux ARM]     [Linux Omap]     [Fedora ARM]     [IETF Annouce]     [Bugtraq]     [Linux OMAP]     [Linux MIPS]     [eCos]     [Asterisk Internet PBX]     [Linux API]

  Powered by Linux