Commit 12686d15 authored by Andi Kleen's avatar Andi Kleen Committed by Andi Kleen

HWPOISON: Try to allocate migration page on the same node

Signed-off-by: default avatarAndi Kleen <ak@linux.intel.com>
parent 0d57eb8d
...@@ -1113,7 +1113,8 @@ EXPORT_SYMBOL(unpoison_memory); ...@@ -1113,7 +1113,8 @@ EXPORT_SYMBOL(unpoison_memory);
static struct page *new_page(struct page *p, unsigned long private, int **x) 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);
} }
/* /*
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment