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 b10237d8b459..6802a7a3dfec 100644
--- a/mm/migrate.c
+++ b/mm/migrate.c
@@ -371,6 +371,8 @@ static void migrate_page_copy(struct page *newpage, struct page *page)
371 __set_page_dirty_nobuffers(newpage); 371 __set_page_dirty_nobuffers(newpage);
372 } 372 }
373 373
374 mlock_migrate_page(newpage, page);
375
374#ifdef CONFIG_SWAP 376#ifdef CONFIG_SWAP
375 ClearPageSwapCache(page); 377 ClearPageSwapCache(page);
376#endif 378#endif