diff options
Diffstat (limited to 'mm/swap.c')
-rw-r--r-- | mm/swap.c | 3 |
1 files changed, 1 insertions, 2 deletions
@@ -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 | } |