Skip to content

Commit

Permalink
mm: numa: split_huge_page: Transfer last_nid on tail page
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Hillf Danton authored and Mel Gorman committed Dec 11, 2012
1 parent 57e0a03 commit 5aa8037
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions mm/huge_memory.c
Original file line number Diff line number Diff line change
Expand Up @@ -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));
Expand Down

0 comments on commit 5aa8037

Please sign in to comment.