HWPOISON: Try to allocate migration page on the same node

Signed-off-by: Andi Kleen <ak@linux.intel.com>
This commit is contained in:
Andi Kleen 2009-12-16 12:20:01 +01:00 committed by Andi Kleen
parent 0d57eb8dfc
commit 12686d153a

View file

@ -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);
}
/*