diff options
Diffstat (limited to 'mm/swapfile.c')
-rw-r--r-- | mm/swapfile.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/mm/swapfile.c b/mm/swapfile.c index 134c085d0d7b..2210de290b54 100644 --- a/mm/swapfile.c +++ b/mm/swapfile.c | |||
@@ -105,7 +105,7 @@ __try_to_reclaim_swap(struct swap_info_struct *si, unsigned long offset) | |||
105 | struct page *page; | 105 | struct page *page; |
106 | int ret = 0; | 106 | int ret = 0; |
107 | 107 | ||
108 | page = find_get_page(swap_address_space(entry), entry.val); | 108 | page = find_get_page(swap_address_space(entry), swp_offset(entry)); |
109 | if (!page) | 109 | if (!page) |
110 | return 0; | 110 | return 0; |
111 | /* | 111 | /* |
@@ -1005,7 +1005,7 @@ int free_swap_and_cache(swp_entry_t entry) | |||
1005 | if (p) { | 1005 | if (p) { |
1006 | if (swap_entry_free(p, entry, 1) == SWAP_HAS_CACHE) { | 1006 | if (swap_entry_free(p, entry, 1) == SWAP_HAS_CACHE) { |
1007 | page = find_get_page(swap_address_space(entry), | 1007 | page = find_get_page(swap_address_space(entry), |
1008 | entry.val); | 1008 | swp_offset(entry)); |
1009 | if (page && !trylock_page(page)) { | 1009 | if (page && !trylock_page(page)) { |
1010 | put_page(page); | 1010 | put_page(page); |
1011 | page = NULL; | 1011 | page = NULL; |