mm: numa: migrate: Set last_nid on newly allocated page

Pass last_nid from misplaced page to newly allocated migration target page.

Signed-off-by: Hillf Danton <[email protected]>
Signed-off-by: Mel Gorman <[email protected]>
This commit is contained in:
Hillf Danton 2012-11-27 14:46:24 +00:00 • committed by Mel Gorman
commit bac0382c6a

View file

@ -1457,6 +1457,9 @@ static struct page *alloc_misplaced_dst_page(struct page *page,
__GFP_NOMEMALLOC | __GFP_NORETRY |
__GFP_NOWARN) &
~GFP_IOFS, 0);
if (newpage)
page_xchg_last_nid(newpage, page_last_nid(page));
return newpage;
}