mm: numa: split_huge_page: Transfer last_nid on tail page
authorHillf Danton <dhillf@gmail.com>
Tue, 27 Nov 2012 14:40:32 +0000 (14:40 +0000)
committerMel Gorman <mgorman@suse.de>
Tue, 11 Dec 2012 14:42:53 +0000 (14:42 +0000)
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>
mm/huge_memory.c

index f3a477fffd09b54fad0eb5b3381a58960d76e9d1..79b96064f8fc7a3c63b300d5c5516397e2454122 100644 (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));