提交 12686d15 编写于 作者: A Andi Kleen 提交者: Andi Kleen

HWPOISON: Try to allocate migration page on the same node

Signed-off-by: NAndi Kleen <ak@linux.intel.com>
上级 0d57eb8d
......@@ -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);
}
/*
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册