Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 1039b9a9 authored by Paul Mundt's avatar Paul Mundt Committed by Paul Mundt
Browse files

sh: __GFP_REPEAT for pte allocations, too.



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

Signed-off-by: default avatarPaul Mundt <lethal@linux-sh.org>
parent 435c55d1
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -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;
}