From 9e3815323febd7b2f1d3458338569584d0b3b290 Mon Sep 17 00:00:00 2001 From: Andrew Morton Date: Wed, 20 Feb 2013 13:14:39 +1100 Subject: [PATCH] swap-make-each-swap-partition-have-one-address_space-fix revert unneeded change to __add_to_swap_cache Cc: Hugh Dickins Cc: Minchan Kim Cc: Rik van Riel Cc: Shaohua Li Cc: Shaohua Li Signed-off-by: Andrew Morton --- mm/swap_state.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mm/swap_state.c b/mm/swap_state.c index f331c07e4e04..8d6644c5d0cc 100644 --- a/mm/swap_state.c +++ b/mm/swap_state.c @@ -87,8 +87,8 @@ static int __add_to_swap_cache(struct page *page, swp_entry_t entry) VM_BUG_ON(!PageSwapBacked(page)); page_cache_get(page); - set_page_private(page, entry.val); SetPageSwapCache(page); + set_page_private(page, entry.val); address_space = swap_address_space(entry); spin_lock_irq(&address_space->tree_lock); -- 2.39.5