Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

sh: __GFP_REPEAT for pte allocations, too.

This got dropped in the quicklist conversion, add it back in..

Signed-off-by: Paul Mundt <lethal@linux-sh.org>

authored by

Paul Mundt and committed by
Paul Mundt
1039b9a9 435c55d1

+2 -2
+2 -2
include/asm-sh/pgalloc.h
··· 44 44 static inline pte_t *pte_alloc_one_kernel(struct mm_struct *mm, 45 45 unsigned long address) 46 46 { 47 - return quicklist_alloc(QUICK_PT, GFP_KERNEL, NULL); 47 + return quicklist_alloc(QUICK_PT, GFP_KERNEL | __GFP_REPEAT, NULL); 48 48 } 49 49 50 50 static inline struct page *pte_alloc_one(struct mm_struct *mm, 51 51 unsigned long address) 52 52 { 53 - void *pg = quicklist_alloc(QUICK_PT, GFP_KERNEL, NULL); 53 + void *pg = quicklist_alloc(QUICK_PT, GFP_KERNEL | __GFP_REPEAT, NULL); 54 54 return pg ? virt_to_page(pg) : NULL; 55 55 } 56 56