]> git.baikalelectronics.ru Git - kernel.git/commit
powerpc/mm/hash/4k: Free hugetlb page table caches correctly.
authorAneesh Kumar K.V <aneesh.kumar@linux.ibm.com>
Thu, 14 Jun 2018 10:31:52 +0000 (16:01 +0530)
committerMichael Ellerman <mpe@ellerman.id.au>
Tue, 19 Jun 2018 23:13:25 +0000 (09:13 +1000)
commitd9b30d8ca54ae21e24b71b02d4b2b60315264f2a
tree69ffe2b951674633146183b0178d7a262adcddc9
parent296ec48fbea6071ffed9fcb3638ee9b4de687686
powerpc/mm/hash/4k: Free hugetlb page table caches correctly.

With 4k page size for hugetlb we allocate hugepage directories from its on slab
cache. With patch acb6d0f6e ("powerpc/book3s64/mm: Simplify the rcu callback for page table free")
we missed to free these allocated hugepd tables.

Update pgtable_free to handle hugetlb hugepd directory table.

Fixes: acb6d0f6e9ce ("powerpc/book3s64/mm: Simplify the rcu callback for page table free")
Signed-off-by: Aneesh Kumar K.V <aneesh.kumar@linux.ibm.com>
[mpe: Add CONFIG_HUGETLB_PAGE guard to fix build break]
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
arch/powerpc/include/asm/book3s/32/pgalloc.h
arch/powerpc/include/asm/book3s/64/pgtable-4k.h
arch/powerpc/include/asm/book3s/64/pgtable-64k.h
arch/powerpc/include/asm/book3s/64/pgtable.h
arch/powerpc/include/asm/nohash/32/pgalloc.h
arch/powerpc/include/asm/nohash/64/pgalloc.h
arch/powerpc/mm/hugetlbpage.c
arch/powerpc/mm/pgtable-book3s64.c