]> git.karo-electronics.de Git - karo-tx-linux.git/commitdiff
swap-make-each-swap-partition-have-one-address_space-fix
authorAndrew Morton <akpm@linux-foundation.org>
Wed, 20 Feb 2013 02:14:39 +0000 (13:14 +1100)
committerStephen Rothwell <sfr@canb.auug.org.au>
Wed, 20 Feb 2013 05:52:46 +0000 (16:52 +1100)
revert unneeded change to  __add_to_swap_cache

Cc: Hugh Dickins <hughd@google.com>
Cc: Minchan Kim <minchan@kernel.org>
Cc: Rik van Riel <riel@redhat.com>
Cc: Shaohua Li <shli@fusionio.com>
Cc: Shaohua Li <shli@kernel.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
mm/swap_state.c

index f331c07e4e04896e8f77de6004673efbbba031d3..8d6644c5d0cc011d3f5654c0d361ab59b1833279 100644 (file)
@@ -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);