diff options
author | Aneesh Kumar K.V <aneesh.kumar@linux.vnet.ibm.com> | 2018-04-16 13:27:23 +0200 |
---|---|---|
committer | Michael Ellerman <mpe@ellerman.id.au> | 2018-05-15 14:29:12 +0200 |
commit | 738f9645550ea6887f119e44dc479821e44571bd (patch) | |
tree | 4a2f223c229a8e3a24d050b3f759e764f97bb930 /arch/powerpc/mm/pgtable-book3s64.c | |
parent | powerpc/mm: Implement helpers for pagetable fragment support at PMD level (diff) | |
download | linux-738f9645550ea6887f119e44dc479821e44571bd.tar.xz linux-738f9645550ea6887f119e44dc479821e44571bd.zip |
powerpc/mm: Use page fragments for allocation page table at PMD level
Signed-off-by: Aneesh Kumar K.V <aneesh.kumar@linux.vnet.ibm.com>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
Diffstat (limited to 'arch/powerpc/mm/pgtable-book3s64.c')
-rw-r--r-- | arch/powerpc/mm/pgtable-book3s64.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/arch/powerpc/mm/pgtable-book3s64.c b/arch/powerpc/mm/pgtable-book3s64.c index 47323ed8d7b5..abda2b92f1ba 100644 --- a/arch/powerpc/mm/pgtable-book3s64.c +++ b/arch/powerpc/mm/pgtable-book3s64.c @@ -400,7 +400,7 @@ static inline void pgtable_free(void *table, int index) pte_fragment_free(table, 0); break; case PMD_INDEX: - kmem_cache_free(PGT_CACHE(PMD_CACHE_INDEX), table); + pmd_fragment_free(table); break; case PUD_INDEX: kmem_cache_free(PGT_CACHE(PUD_CACHE_INDEX), table); @@ -431,7 +431,6 @@ void __tlb_remove_table(void *_table) #else void pgtable_free_tlb(struct mmu_gather *tlb, void *table, int index) { - return pgtable_free(table, index); } #endif |