diff options
Diffstat (limited to 'mm/swapfile.c')
-rw-r--r-- | mm/swapfile.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/mm/swapfile.c b/mm/swapfile.c index 2a97fafa3d89..90cb67a5417c 100644 --- a/mm/swapfile.c +++ b/mm/swapfile.c | |||
@@ -422,7 +422,7 @@ void free_swap_and_cache(swp_entry_t entry) | |||
422 | if (p) { | 422 | if (p) { |
423 | if (swap_entry_free(p, swp_offset(entry)) == 1) { | 423 | if (swap_entry_free(p, swp_offset(entry)) == 1) { |
424 | page = find_get_page(&swapper_space, entry.val); | 424 | page = find_get_page(&swapper_space, entry.val); |
425 | if (page && unlikely(!trylock_page(page))) { | 425 | if (page && !trylock_page(page)) { |
426 | page_cache_release(page); | 426 | page_cache_release(page); |
427 | page = NULL; | 427 | page = NULL; |
428 | } | 428 | } |