aboutsummaryrefslogtreecommitdiffstats
path: root/include/asm-sh/pgalloc.h
diff options
context:
space:
mode:
authorPaul Mundt <lethal@linux-sh.org>2007-05-07 23:07:21 -0400
committerPaul Mundt <lethal@hera.kernel.org>2007-05-08 21:35:01 -0400
commit1039b9a9d830e906efa770db75db8a3e11c47c1a (patch)
tree1c990dfdfee1d39801404d922a94e44f5f2dca32 /include/asm-sh/pgalloc.h
parent435c55d1ef3ec5460fab8c332a693ef5fad18454 (diff)
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>
Diffstat (limited to 'include/asm-sh/pgalloc.h')
-rw-r--r--include/asm-sh/pgalloc.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/include/asm-sh/pgalloc.h b/include/asm-sh/pgalloc.h
index 26e493f39dbb..18b613c57cf5 100644
--- a/include/asm-sh/pgalloc.h
+++ b/include/asm-sh/pgalloc.h
@@ -44,13 +44,13 @@ static inline void pgd_free(pgd_t *pgd)
44static inline pte_t *pte_alloc_one_kernel(struct mm_struct *mm, 44static inline pte_t *pte_alloc_one_kernel(struct mm_struct *mm,
45 unsigned long address) 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
50static inline struct page *pte_alloc_one(struct mm_struct *mm, 50static inline struct page *pte_alloc_one(struct mm_struct *mm,
51 unsigned long address) 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 return pg ? virt_to_page(pg) : NULL; 54 return pg ? virt_to_page(pg) : NULL;
55} 55}
56 56