diff options
author | Balbir Singh <bsingharora@gmail.com> | 2017-05-02 08:17:05 +0300 |
---|---|---|
committer | Michael Ellerman <mpe@ellerman.id.au> | 2017-06-05 12:03:11 +0300 |
commit | abd667be1502f92a9c98404ad3f2e52ea13724f2 (patch) | |
tree | 3689883cab852ff19261e9449037da06370b8642 /arch/powerpc/mm | |
parent | de3b87611dd1f3c00f4e42fe298457260ea781e0 (diff) | |
download | linux-abd667be1502f92a9c98404ad3f2e52ea13724f2.tar.xz |
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/mm')
-rw-r--r-- | arch/powerpc/mm/pgtable_32.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/powerpc/mm/pgtable_32.c b/arch/powerpc/mm/pgtable_32.c index cf32c5c6fe28..8de9db2b4d96 100644 --- a/arch/powerpc/mm/pgtable_32.c +++ b/arch/powerpc/mm/pgtable_32.c @@ -60,7 +60,7 @@ pgtable_t pte_alloc_one(struct mm_struct *mm, unsigned long address) { struct page *ptepage; - gfp_t flags = GFP_KERNEL | __GFP_ZERO; + gfp_t flags = GFP_KERNEL | __GFP_ZERO | __GFP_ACCOUNT; ptepage = alloc_pages(flags, 0); if (!ptepage) |