[PATCH 3/3] balancenuma: set last_nid on tail page

From: Hillf Danton
Date: Tue Nov 27 2012 - 08:22:04 EST


Pass last_nid from head page to tail page.

Signed-off-by: Hillf Danton <dhillf@xxxxxxxxx>
---

--- a/mm/huge_memory.c Tue Nov 27 20:45:56 2012
+++ b/mm/huge_memory.c Tue Nov 27 20:54:54 2012
@@ -1382,6 +1382,7 @@ static void __split_huge_page_refcount(s
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));
--
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/