diff options
author | Balbir Singh <bsingharora@gmail.com> | 2017-05-02 15:17:05 +1000 |
---|---|---|
committer | Michael Ellerman <mpe@ellerman.id.au> | 2017-06-05 19:03:11 +1000 |
commit | abd667be1502f92a9c98404ad3f2e52ea13724f2 (patch) | |
tree | 3689883cab852ff19261e9449037da06370b8642 /arch/powerpc/include | |
parent | de3b87611dd1f3c00f4e42fe298457260ea781e0 (diff) | |
download | op-kernel-dev-abd667be1502f92a9c98404ad3f2e52ea13724f2.zip op-kernel-dev-abd667be1502f92a9c98404ad3f2e52ea13724f2.tar.gz |
powerpc/mm/book(e)(3s)/32: Add page table accounting
Add support in pte_alloc_one() and pgd_alloc() by
passing __GFP_ACCOUNT in the flags
Signed-off-by: Balbir Singh <bsingharora@gmail.com>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
Diffstat (limited to 'arch/powerpc/include')
-rw-r--r-- | arch/powerpc/include/asm/nohash/32/pgalloc.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/arch/powerpc/include/asm/nohash/32/pgalloc.h b/arch/powerpc/include/asm/nohash/32/pgalloc.h index 6331392..cc369a7 100644 --- a/arch/powerpc/include/asm/nohash/32/pgalloc.h +++ b/arch/powerpc/include/asm/nohash/32/pgalloc.h @@ -31,7 +31,8 @@ extern struct kmem_cache *pgtable_cache[]; static inline pgd_t *pgd_alloc(struct mm_struct *mm) { - return kmem_cache_alloc(PGT_CACHE(PGD_INDEX_SIZE), GFP_KERNEL); + return kmem_cache_alloc(PGT_CACHE(PGD_INDEX_SIZE), + pgtable_gfp_flags(mm, GFP_KERNEL)); } static inline void pgd_free(struct mm_struct *mm, pgd_t *pgd) |