All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH 3/3] balancenuma: set last_nid on tail page
@ 2012-11-27 13:22 Hillf Danton
  2012-11-27 14:42 ` Mel Gorman
  0 siblings, 1 reply; 2+ messages in thread
From: Hillf Danton @ 2012-11-27 13:22 UTC (permalink / raw)
  To: Mel Gorman; +Cc: LKML, Hillf Danton

Pass last_nid from head page to tail page.

Signed-off-by: Hillf Danton <dhillf@gmail.com>
---

--- 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));
--

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2012-11-27 14:42 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-11-27 13:22 [PATCH 3/3] balancenuma: set last_nid on tail page Hillf Danton
2012-11-27 14:42 ` Mel Gorman

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.