mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/
synced 2026-10-16 22:39:48 +00:00
powerpc/mm/hugetlb: initialize the pagetable cache correctly for hugetlb
commit6fa504835dupstream. With 64k page size, we have hugetlb pte entries at the pmd and pud level for book3s64. We don't need to create a separate page table cache for that. With 4k we need to make sure hugepd page table cache for 16M is placed at PUD level and 16G at the PGD level. Simplify all these by not using HUGEPD_PD_SHIFT which is confusing for book3s64. Without this patch, with 64k page size we create pagetable caches with shift value 10 and 7 which are not used at all. Fixes:419df06eea("powerpc: Reduce the PTE_INDEX_SIZE") Signed-off-by: Aneesh Kumar K.V <aneesh.kumar@linux.vnet.ibm.com> Signed-off-by: Michael Ellerman <mpe@ellerman.id.au> [bwh: Backported to 3.16: Don't use an #ifdef because this implementation of hugetlbpage_init() is only used if CONFIG_PPC_BOOK3S_64 is enabled.] Signed-off-by: Ben Hutchings <ben@decadent.org.uk>
This commit is contained in:
parent
ad9569a1e8
commit
d083268bd9
1 changed files with 8 additions and 9 deletions
Loading…
Add table
Add a link
Reference in a new issue