diff options
author | Michael Ellerman <[email protected]> | 2022-09-03 22:36:40 +1000 |
---|---|---|
committer | Michael Ellerman <[email protected]> | 2022-09-26 20:58:18 +1000 |
commit | 79c5640ab4460a03535ce0f120193174e7701b65 (patch) | |
tree | 7b16839c51ebaf47ebe0ef8399a3e002975e5e54 /include/linux/hugetlb.h | |
parent | 51da853e3708852f47cd95e6f5e1821c3d54c3ef (diff) |
powerpc/mm/64s: Drop p4d_leaf()
Because 64-bit Book3S uses pgtable-nop4d.h, the P4D is folded into the
PGD. So P4D entries are actually PGD entries, or vice versa.
The other way to think of it is that the P4D is a single entry page
table below the PGD. Zero bits of the address are needed to index into
the P4D, therefore a P4D entry maps the same size address space as a PGD
entry.
As explained in the previous commit, there are no huge page sizes
supported directly at the PGD level on 64-bit Book3S, so there are also
no huge page sizes supported at the P4D level.
Therefore p4d_is_leaf() can never be true, so drop the definition and
fallback to the default implementation that always returns false.
Reviewed-by: Aneesh Kumar K.V <[email protected]>
Signed-off-by: Michael Ellerman <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Diffstat (limited to 'include/linux/hugetlb.h')
0 files changed, 0 insertions, 0 deletions