From: Balbir Singh Date: Tue, 2 May 2017 05:17:06 +0000 (+1000) Subject: powerpc/mm/hugetlb: Add support for page accounting X-Git-Tag: v4.13-rc1~111^2~105 X-Git-Url: https://asedeno.scripts.mit.edu/gitweb/?a=commitdiff_plain;h=d2485644c7836514e337de456b5a6c8a1119fc8b;p=linux.git powerpc/mm/hugetlb: Add support for page accounting Add __GFP_ACCOUNT to __hugepte_alloc() Signed-off-by: Balbir Singh Signed-off-by: Michael Ellerman --- diff --git a/arch/powerpc/mm/hugetlbpage.c b/arch/powerpc/mm/hugetlbpage.c index a4f33de4008e..94e56b10e4cc 100644 --- a/arch/powerpc/mm/hugetlbpage.c +++ b/arch/powerpc/mm/hugetlbpage.c @@ -77,7 +77,7 @@ static int __hugepte_alloc(struct mm_struct *mm, hugepd_t *hpdp, num_hugepd = 1; } - new = kmem_cache_zalloc(cachep, GFP_KERNEL); + new = kmem_cache_zalloc(cachep, pgtable_gfp_flags(mm, GFP_KERNEL)); BUG_ON(pshift > HUGEPD_SHIFT_MASK); BUG_ON((unsigned long)new & HUGEPD_SHIFT_MASK);