projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
5aa8037
)
mm: numa: migrate: Set last_nid on newly allocated page
author
Hillf Danton
<dhillf@gmail.com>
Tue, 27 Nov 2012 14:46:24 +0000
(14:46 +0000)
committer
Mel Gorman
<mgorman@suse.de>
Tue, 11 Dec 2012 14:42:53 +0000
(14:42 +0000)
Pass last_nid from misplaced page to newly allocated migration target page.
Signed-off-by: Hillf Danton <dhillf@gmail.com>
Signed-off-by: Mel Gorman <mgorman@suse.de>
mm/migrate.c
patch
|
blob
|
history
diff --git
a/mm/migrate.c
b/mm/migrate.c
index 32a1afca6009ba39eb89d6aca3985ddc5a14ac06..2a5ce135eef0304af92ddd675364f2fcbccf8d21 100644
(file)
--- a/
mm/migrate.c
+++ b/
mm/migrate.c
@@
-1457,6
+1457,9
@@
static struct page *alloc_misplaced_dst_page(struct page *page,
__GFP_NOMEMALLOC | __GFP_NORETRY |
__GFP_NOWARN) &
~GFP_IOFS, 0);
+ if (newpage)
+ page_xchg_last_nid(newpage, page_last_nid(page));
+
return newpage;
}