diff options
Diffstat (limited to 'mm')
-rw-r--r-- | mm/swap_state.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/mm/swap_state.c b/mm/swap_state.c index 43cda7b4b808..3353c9029cef 100644 --- a/mm/swap_state.c +++ b/mm/swap_state.c | |||
@@ -303,7 +303,7 @@ struct page *read_swap_cache_async(swp_entry_t entry, gfp_t gfp_mask, | |||
303 | * re-using the just freed swap entry for an existing page. | 303 | * re-using the just freed swap entry for an existing page. |
304 | * May fail (-ENOMEM) if radix-tree node allocation failed. | 304 | * May fail (-ENOMEM) if radix-tree node allocation failed. |
305 | */ | 305 | */ |
306 | set_page_locked(new_page); | 306 | __set_page_locked(new_page); |
307 | SetPageSwapBacked(new_page); | 307 | SetPageSwapBacked(new_page); |
308 | err = add_to_swap_cache(new_page, entry, gfp_mask & GFP_KERNEL); | 308 | err = add_to_swap_cache(new_page, entry, gfp_mask & GFP_KERNEL); |
309 | if (likely(!err)) { | 309 | if (likely(!err)) { |
@@ -315,7 +315,7 @@ struct page *read_swap_cache_async(swp_entry_t entry, gfp_t gfp_mask, | |||
315 | return new_page; | 315 | return new_page; |
316 | } | 316 | } |
317 | ClearPageSwapBacked(new_page); | 317 | ClearPageSwapBacked(new_page); |
318 | clear_page_locked(new_page); | 318 | __clear_page_locked(new_page); |
319 | swap_free(entry); | 319 | swap_free(entry); |
320 | } while (err != -ENOMEM); | 320 | } while (err != -ENOMEM); |
321 | 321 | ||