Commit 12686d153abff397fa0927c620d5a3de84910b72

Authored by Andi Kleen
Committed by Andi Kleen
1 parent 0d57eb8dfc

HWPOISON: Try to allocate migration page on the same node

Signed-off-by: Andi Kleen <ak@linux.intel.com>

Showing 1 changed file with 2 additions and 1 deletions Side-by-side Diff

... ... @@ -1113,7 +1113,8 @@
1113 1113  
1114 1114 static struct page *new_page(struct page *p, unsigned long private, int **x)
1115 1115 {
1116   - return alloc_pages(GFP_HIGHUSER_MOVABLE, 0);
  1116 + int nid = page_to_nid(p);
  1117 + return alloc_pages_exact_node(nid, GFP_HIGHUSER_MOVABLE, 0);
1117 1118 }
1118 1119  
1119 1120 /*