From: Hillf Danton <[email protected]>

Pass last_nid from misplaced page to newly allocated migration target page.

Signed-off-by: Hillf Danton <[email protected]>
Signed-off-by: Mel Gorman <[email protected]>
---
 mm/migrate.c |    3 +++
 1 file changed, 3 insertions(+)

diff --git a/mm/migrate.c b/mm/migrate.c
index 2c8310c..6bc9745 100644
--- 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;
 }
 
-- 
1.7.9.2

--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to [email protected]
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

Reply via email to