mirror of
https://github.com/team-infusion-developers/android_kernel_samsung_msm8976.git
synced 2024-09-21 20:04:01 +00:00
mm: numa: migrate: Set last_nid on newly allocated page
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>
This commit is contained in:
parent
5aa80374a1
commit
bac0382c6a
1 changed files with 3 additions and 0 deletions
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue