mm: numa: split_huge_page: Transfer last_nid on tail page

Pass last_nid from head page to tail page.

Signed-off-by: Hillf Danton <dhillf@gmail.com>
Signed-off-by: Mel Gorman <mgorman@suse.de>
This commit is contained in:
Hillf Danton 2012-11-27 14:40:32 +00:00 committed by Mel Gorman
parent 57e0a03091
commit 5aa80374a1

View File

@ -1362,6 +1362,7 @@ static void __split_huge_page_refcount(struct page *page)
page_tail->mapping = page->mapping;
page_tail->index = page->index + i;
page_xchg_last_nid(page_tail, page_last_nid(page));
BUG_ON(!PageAnon(page_tail));
BUG_ON(!PageUptodate(page_tail));