summaryrefslogtreecommitdiffstats
path: root/mm/huge_memory.c
diff options
context:
space:
mode:
authorHillf Danton <dhillf@gmail.com>2012-11-27 14:40:32 +0000
committerMel Gorman <mgorman@suse.de>2012-12-11 14:42:53 +0000
commit5aa80374a10567f8e25de0615d3d40f3aa3a4298 (patch)
tree8c5829001c1b1a6f9bb0427dd1d5dcc7a99486e6 /mm/huge_memory.c
parent57e0a0309160b1b4ebde9f3c6a867cd96ac368bf (diff)
downloadlinux-5aa80374a10567f8e25de0615d3d40f3aa3a4298.tar.bz2
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>
Diffstat (limited to 'mm/huge_memory.c')
-rw-r--r--mm/huge_memory.c1
1 files changed, 1 insertions, 0 deletions
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));