aboutsummaryrefslogtreecommitdiffstats
path: root/mm/migrate.c
diff options
context:
space:
mode:
Diffstat (limited to 'mm/migrate.c')
-rw-r--r--mm/migrate.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/mm/migrate.c b/mm/migrate.c
index 0edeac91348d..37143b924484 100644
--- a/mm/migrate.c
+++ b/mm/migrate.c
@@ -312,7 +312,10 @@ static int migrate_page_move_mapping(struct address_space *mapping,
312 */ 312 */
313 __dec_zone_page_state(page, NR_FILE_PAGES); 313 __dec_zone_page_state(page, NR_FILE_PAGES);
314 __inc_zone_page_state(newpage, NR_FILE_PAGES); 314 __inc_zone_page_state(newpage, NR_FILE_PAGES);
315 315 if (PageSwapBacked(page)) {
316 __dec_zone_page_state(page, NR_SHMEM);
317 __inc_zone_page_state(newpage, NR_SHMEM);
318 }
316 spin_unlock_irq(&mapping->tree_lock); 319 spin_unlock_irq(&mapping->tree_lock);
317 320
318 return 0; 321 return 0;