]> err.no Git - linux-2.6/commitdiff
sh: __GFP_REPEAT for pte allocations, too.
authorPaul Mundt <lethal@linux-sh.org>
Tue, 8 May 2007 03:07:21 +0000 (12:07 +0900)
committerPaul Mundt <lethal@hera.kernel.org>
Wed, 9 May 2007 01:35:01 +0000 (01:35 +0000)
This got dropped in the quicklist conversion, add it back in..

Signed-off-by: Paul Mundt <lethal@linux-sh.org>
include/asm-sh/pgalloc.h

index 26e493f39dbb59212483c1c949ad714f96a48251..18b613c57cf5118a8ea6fc452d0a0230ff4d50bf 100644 (file)
@@ -44,13 +44,13 @@ static inline void pgd_free(pgd_t *pgd)
 static inline pte_t *pte_alloc_one_kernel(struct mm_struct *mm,
                                          unsigned long address)
 {
-       return quicklist_alloc(QUICK_PT, GFP_KERNEL, NULL);
+       return quicklist_alloc(QUICK_PT, GFP_KERNEL | __GFP_REPEAT, NULL);
 }
 
 static inline struct page *pte_alloc_one(struct mm_struct *mm,
                                         unsigned long address)
 {
-       void *pg = quicklist_alloc(QUICK_PT, GFP_KERNEL, NULL);
+       void *pg = quicklist_alloc(QUICK_PT, GFP_KERNEL | __GFP_REPEAT, NULL);
        return pg ? virt_to_page(pg) : NULL;
 }