linuxppc-dev.lists.ozlabs.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] powerpc/mm/nohash: add definition of PGALLOC_GFP
@ 2017-08-15  3:46 Balbir Singh
  2017-08-16 12:30 ` Michael Ellerman
  0 siblings, 1 reply; 2+ messages in thread
From: Balbir Singh @ 2017-08-15  3:46 UTC (permalink / raw)
  To: linuxppc-dev, mpe

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

I missed adding PGALLOC_GFP for nohash/64

Reported-by: Michael Ellerman <mpe@ellerman.id.au>
Signed-off-by: Balbir Singh <bsingharora@gmail.com>
---
 arch/powerpc/include/asm/nohash/64/pgalloc.h | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/arch/powerpc/include/asm/nohash/64/pgalloc.h b/arch/powerpc/include/asm/nohash/64/pgalloc.h
index 9721c78..ce1d34e 100644
--- a/arch/powerpc/include/asm/nohash/64/pgalloc.h
+++ b/arch/powerpc/include/asm/nohash/64/pgalloc.h
@@ -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),
-- 
2.9.4

^ permalink raw reply related	[flat|nested] 2+ messages in thread

* Re: powerpc/mm/nohash: add definition of PGALLOC_GFP
  2017-08-15  3:46 [PATCH] powerpc/mm/nohash: add definition of PGALLOC_GFP Balbir Singh
@ 2017-08-16 12:30 ` Michael Ellerman
  0 siblings, 0 replies; 2+ messages in thread
From: Michael Ellerman @ 2017-08-16 12:30 UTC (permalink / raw)
  To: Balbir Singh, linuxppc-dev

On Tue, 2017-08-15 at 03:46:36 UTC, Balbir Singh wrote:
> fixes
> (de3b876 powerpc/mm/book(e)(3s)/64: Add page table accounting)
> 
> I missed adding PGALLOC_GFP for nohash/64
> 
> Reported-by: Michael Ellerman <mpe@ellerman.id.au>
> Signed-off-by: Balbir Singh <bsingharora@gmail.com>

Applied to powerpc next, thanks.

https://git.kernel.org/powerpc/c/5b6c133e0801007117cf4a466cb56d

cheers

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2017-08-16 12:30 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2017-08-15  3:46 [PATCH] powerpc/mm/nohash: add definition of PGALLOC_GFP Balbir Singh
2017-08-16 12:30 ` Michael Ellerman

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).