aboutsummaryrefslogtreecommitdiffstats
path: root/mm/migrate.c
diff options
context:
space:
mode:
Diffstat (limited to 'mm/migrate.c')
-rw-r--r--mm/migrate.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/mm/migrate.c b/mm/migrate.c
index ad15b5ef2599..c07327487111 100644
--- a/mm/migrate.c
+++ b/mm/migrate.c
@@ -572,6 +572,8 @@ static int move_to_new_page(struct page *newpage, struct page *page)
572 /* Prepare mapping for the new page.*/ 572 /* Prepare mapping for the new page.*/
573 newpage->index = page->index; 573 newpage->index = page->index;
574 newpage->mapping = page->mapping; 574 newpage->mapping = page->mapping;
575 if (PageSwapBacked(page))
576 SetPageSwapBacked(newpage);
575 577
576 mapping = page_mapping(page); 578 mapping = page_mapping(page);
577 if (!mapping) 579 if (!mapping)