aboutsummaryrefslogtreecommitdiffstats
path: root/mm/swap.c
diff options
context:
space:
mode:
Diffstat (limited to 'mm/swap.c')
-rw-r--r--mm/swap.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/mm/swap.c b/mm/swap.c
index ff0b290475fd..ba2c0e8b8b54 100644
--- a/mm/swap.c
+++ b/mm/swap.c
@@ -454,8 +454,7 @@ void pagevec_swap_free(struct pagevec *pvec)
454 struct page *page = pvec->pages[i]; 454 struct page *page = pvec->pages[i];
455 455
456 if (PageSwapCache(page) && trylock_page(page)) { 456 if (PageSwapCache(page) && trylock_page(page)) {
457 if (PageSwapCache(page)) 457 try_to_free_swap(page);
458 remove_exclusive_swap_page_ref(page);
459 unlock_page(page); 458 unlock_page(page);
460 } 459 }
461 } 460 }