commit | 12686d153abff397fa0927c620d5a3de84910b72 | [log] [tgz] |
---|---|---|
author | Andi Kleen <andi@firstfloor.org> | Wed Dec 16 12:20:01 2009 +0100 |
committer | Andi Kleen <ak@linux.intel.com> | Wed Dec 16 12:20:01 2009 +0100 |
tree | 3a6f19e38e99cded5067452693083ac76c63733f | |
parent | 0d57eb8dfcb92e3dd928d792f4ed2b2fec680bb7 [diff] [blame] |
HWPOISON: Try to allocate migration page on the same node Signed-off-by: Andi Kleen <ak@linux.intel.com>
diff --git a/mm/memory-failure.c b/mm/memory-failure.c index bcce287..006430b 100644 --- a/mm/memory-failure.c +++ b/mm/memory-failure.c
@@ -1113,7 +1113,8 @@ 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); } /*