diff options
-rw-r--r-- | mm/migrate.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/mm/migrate.c b/mm/migrate.c index 9e0beaa91845..be6dbf995c0c 100644 --- a/mm/migrate.c +++ b/mm/migrate.c | |||
@@ -988,9 +988,10 @@ out: | |||
988 | * it. Otherwise, putback_lru_page() will drop the reference grabbed | 988 | * it. Otherwise, putback_lru_page() will drop the reference grabbed |
989 | * during isolation. | 989 | * during isolation. |
990 | */ | 990 | */ |
991 | if (rc != MIGRATEPAGE_SUCCESS && put_new_page) | 991 | if (rc != MIGRATEPAGE_SUCCESS && put_new_page) { |
992 | ClearPageSwapBacked(newpage); | ||
992 | put_new_page(newpage, private); | 993 | put_new_page(newpage, private); |
993 | else | 994 | } else |
994 | putback_lru_page(newpage); | 995 | putback_lru_page(newpage); |
995 | 996 | ||
996 | if (result) { | 997 | if (result) { |