Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 12686d15 authored by Andi Kleen's avatar Andi Kleen Committed by Andi Kleen
Browse files

HWPOISON: Try to allocate migration page on the same node



Signed-off-by: default avatarAndi Kleen <ak@linux.intel.com>
parent 0d57eb8d
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -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);
}

/*