From: Hillf Danton <dhillf@xxxxxxxxx> Pass last_nid from head page to tail page. Signed-off-by: Hillf Danton <dhillf@xxxxxxxxx> Signed-off-by: Mel Gorman <mgorman@xxxxxxx> --- mm/huge_memory.c | 1 + 1 file changed, 1 insertion(+) diff --git a/mm/huge_memory.c b/mm/huge_memory.c index 66e73cc..4c6efa8 100644 --- a/mm/huge_memory.c +++ b/mm/huge_memory.c @@ -1361,6 +1361,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)); -- 1.7.9.2 -- To unsubscribe, send a message with 'unsubscribe linux-mm' in the body to majordomo@xxxxxxxxx. For more info on Linux MM, see: http://www.linux-mm.org/ . Don't email: <a href=mailto:"dont@xxxxxxxxx"> email@xxxxxxxxx </a>