aboutsummaryrefslogtreecommitdiffstats
path: root/mm/huge_memory.c
diff options
context:
space:
mode:
authorHillf Danton <dhillf@gmail.com>2012-11-27 09:40:32 -0500
committerMel Gorman <mgorman@suse.de>2012-12-11 09:42:53 -0500
commit5aa80374a10567f8e25de0615d3d40f3aa3a4298 (patch)
tree8c5829001c1b1a6f9bb0427dd1d5dcc7a99486e6 /mm/huge_memory.c
parent57e0a0309160b1b4ebde9f3c6a867cd96ac368bf (diff)
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)
1362 page_tail->mapping = page->mapping; 1362 page_tail->mapping = page->mapping;
1363 1363
1364 page_tail->index = page->index + i; 1364 page_tail->index = page->index + i;
1365 page_xchg_last_nid(page_tail, page_last_nid(page));
1365 1366
1366 BUG_ON(!PageAnon(page_tail)); 1367 BUG_ON(!PageAnon(page_tail));
1367 BUG_ON(!PageUptodate(page_tail)); 1368 BUG_ON(!PageUptodate(page_tail));