X-Git-Url: http://drtracing.org/?a=blobdiff_plain;f=mm%2Fmemcontrol.c;h=f85861531f2229e821c6ec8268415cd4bc3250b8;hb=33806f06da654092182410d974b6d3c5396ea3eb;hp=c878b1c69510b1f71dc8fd94dab0f6b17efeead3;hpb=9800339b5e0f0e24ab3dac349e0de80d2018832e;p=deliverable%2Flinux.git diff --git a/mm/memcontrol.c b/mm/memcontrol.c index c878b1c69510..f85861531f22 100644 --- a/mm/memcontrol.c +++ b/mm/memcontrol.c @@ -6307,7 +6307,7 @@ static struct page *mc_handle_swap_pte(struct vm_area_struct *vma, * Because lookup_swap_cache() updates some statistics counter, * we call find_get_page() with swapper_space directly. */ - page = find_get_page(&swapper_space, ent.val); + page = find_get_page(swap_address_space(ent), ent.val); if (do_swap_account) entry->val = ent.val; @@ -6348,7 +6348,7 @@ static struct page *mc_handle_file_pte(struct vm_area_struct *vma, swp_entry_t swap = radix_to_swp_entry(page); if (do_swap_account) *entry = swap; - page = find_get_page(&swapper_space, swap.val); + page = find_get_page(swap_address_space(swap), swap.val); } #endif return page;