HWPOISON: Try to allocate migration page on the same node
Signed-off-by: Andi Kleen <ak@linux.intel.com>
This commit is contained in:
parent
0d57eb8dfc
commit
12686d153a
1 changed files with 2 additions and 1 deletions
|
@ -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);
|
||||
}
|
||||
|
||||
/*
|
||||
|
|
Loading…
Reference in a new issue