From: Andi Kleen Date: Wed, 16 Dec 2009 11:20:01 +0000 (+0100) Subject: HWPOISON: Try to allocate migration page on the same node X-Git-Tag: v2.6.33-rc1~45^2~1 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=12686d153abff397fa0927c620d5a3de84910b72;p=profile%2Fivi%2Fkernel-x86-ivi.git HWPOISON: Try to allocate migration page on the same node Signed-off-by: Andi Kleen --- diff --git a/mm/memory-failure.c b/mm/memory-failure.c index bcce287..006430b 100644 --- a/mm/memory-failure.c +++ b/mm/memory-failure.c @@ -1113,7 +1113,8 @@ EXPORT_SYMBOL(unpoison_memory); static struct page *new_page(struct page *p, unsigned long private, int **x) { - return alloc_pages(GFP_HIGHUSER_MOVABLE, 0); + int nid = page_to_nid(p); + return alloc_pages_exact_node(nid, GFP_HIGHUSER_MOVABLE, 0); } /*