From: Andrew Morton Date: Wed, 20 Feb 2013 02:14:39 +0000 (+1100) Subject: swap-make-each-swap-partition-have-one-address_space-fix X-Git-Tag: next-20130220~1^2~465 X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=9e3815323febd7b2f1d3458338569584d0b3b290;p=karo-tx-linux.git 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 --- 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);