From: Hillf Danton Date: Tue, 27 Nov 2012 14:40:32 +0000 (+0000) Subject: mm: numa: split_huge_page: Transfer last_nid on tail page X-Git-Url: http://git.lede-project.org./?a=commitdiff_plain;h=5aa80374a10567f8e25de0615d3d40f3aa3a4298;p=openwrt%2Fstaging%2Fblogic.git 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 Signed-off-by: Mel Gorman --- diff --git a/mm/huge_memory.c b/mm/huge_memory.c index f3a477fffd09..79b96064f8fc 100644 --- a/mm/huge_memory.c +++ b/mm/huge_memory.c @@ -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));