Skip to contentSkip to conversation

powerpc/mm/nohash: add definition of PGALLOC_GFP

PATCH Applied Balbir Singh 2 participants 2 messages Aug 15, 2017 – Aug 16, 2017 PowerPC

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 powerpc/mm/nohash: add definition of PGALLOC_GFP

fixes
(de3b876 powerpc/mm/book(e)(3s)/64: Add page table accounting)

I missed adding PGALLOC_GFP for nohash/64

---
 arch/powerpc/include/asm/nohash/64/pgalloc.h | 2 ++
 1 file changed, 2 insertions(+)
arch/powerpc/include/asm/nohash/64/pgalloc.h +2 -0
index 9721c78..ce1d34e 100644
@@ -41,6 +41,8 @@ extern struct kmem_cache *pgtable_cache[];
 			pgtable_cache[(shift) - 1];	\
 		})
 
+#define PGALLOC_GFP (GFP_KERNEL | __GFP_NOTRACK | __GFP_ZERO)
+
 static inline pgd_t *pgd_alloc(struct mm_struct *mm)
 {
 	return kmem_cache_alloc(PGT_CACHE(PGD_INDEX_SIZE),
Signature · 1 line
2.9.4