aboutsummaryrefslogtreecommitdiffstats
path: root/mm
diff options
context:
space:
mode:
authorAndi Kleen <andi@firstfloor.org>2009-12-16 06:20:01 -0500
committerAndi Kleen <ak@linux.intel.com>2009-12-16 06:20:01 -0500
commit12686d153abff397fa0927c620d5a3de84910b72 (patch)
tree3a6f19e38e99cded5067452693083ac76c63733f /mm
parent0d57eb8dfcb92e3dd928d792f4ed2b2fec680bb7 (diff)
HWPOISON: Try to allocate migration page on the same node
Signed-off-by: Andi Kleen <ak@linux.intel.com>
Diffstat (limited to 'mm')
-rw-r--r--mm/memory-failure.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/mm/memory-failure.c b/mm/memory-failure.c
index bcce28755832..006430b972ac 100644
--- a/mm/memory-failure.c
+++ b/mm/memory-failure.c
@@ -1113,7 +1113,8 @@ EXPORT_SYMBOL(unpoison_memory);
1113 1113
1114static struct page *new_page(struct page *p, unsigned long private, int **x) 1114static 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/*