diff --git a/mm/memory-failure.c b/mm/memory-failure.c index bcce287558324220c71c7bc3c7e665897cb8d2b3..006430b972ac2bb85a9ec769e910e2618bfa161b 100644 --- a/mm/memory-failure.c +++ b/mm/memory-failure.c @@ -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); } /*