diff options
Diffstat (limited to 'mm/swap.c')
-rw-r--r-- | mm/swap.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -444,7 +444,7 @@ void pagevec_strip(struct pagevec *pvec) | |||
444 | for (i = 0; i < pagevec_count(pvec); i++) { | 444 | for (i = 0; i < pagevec_count(pvec); i++) { |
445 | struct page *page = pvec->pages[i]; | 445 | struct page *page = pvec->pages[i]; |
446 | 446 | ||
447 | if (PagePrivate(page) && !TestSetPageLocked(page)) { | 447 | if (PagePrivate(page) && trylock_page(page)) { |
448 | if (PagePrivate(page)) | 448 | if (PagePrivate(page)) |
449 | try_to_release_page(page, 0); | 449 | try_to_release_page(page, 0); |
450 | unlock_page(page); | 450 | unlock_page(page); |