]> git.kernelconcepts.de Git - karo-tx-linux.git/blobdiff - arch/powerpc/include/asm/nohash/32/pgalloc.h
powerpc/mm/book(e)(3s)/32: Add page table accounting
[karo-tx-linux.git] / arch / powerpc / include / asm / nohash / 32 / pgalloc.h
index 633139291a481a3986fda12c372d2990632a8620..cc369a70f2bb3f6c03eaf4d8ae92f6aac3eb6ba5 100644 (file)
@@ -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)