Skip to content

Commit

Permalink
HWPOISON: Try to allocate migration page on the same node
Browse files Browse the repository at this point in the history
Signed-off-by: Andi Kleen <ak@linux.intel.com>
  • Loading branch information
Andi Kleen authored and Andi Kleen committed Dec 16, 2009
1 parent 0d57eb8 commit 12686d1
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion mm/memory-failure.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}

/*
Expand Down

0 comments on commit 12686d1

Please sign in to comment.