]> 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>
Thu, 7 Feb 2013 01:26:50 +0000 (12:26 +1100)
committerStephen Rothwell <sfr@canb.auug.org.au>
Mon, 18 Feb 2013 05:46:41 +0000 (16:46 +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);