diff options
Diffstat (limited to 'mm/madvise.c')
-rw-r--r-- | mm/madvise.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/mm/madvise.c b/mm/madvise.c index a01147359f3b..07427d3fcead 100644 --- a/mm/madvise.c +++ b/mm/madvise.c | |||
@@ -170,7 +170,7 @@ static int swapin_walk_pmd_entry(pmd_t *pmd, unsigned long start, | |||
170 | page = read_swap_cache_async(entry, GFP_HIGHUSER_MOVABLE, | 170 | page = read_swap_cache_async(entry, GFP_HIGHUSER_MOVABLE, |
171 | vma, index); | 171 | vma, index); |
172 | if (page) | 172 | if (page) |
173 | page_cache_release(page); | 173 | put_page(page); |
174 | } | 174 | } |
175 | 175 | ||
176 | return 0; | 176 | return 0; |
@@ -204,14 +204,14 @@ static void force_shm_swapin_readahead(struct vm_area_struct *vma, | |||
204 | page = find_get_entry(mapping, index); | 204 | page = find_get_entry(mapping, index); |
205 | if (!radix_tree_exceptional_entry(page)) { | 205 | if (!radix_tree_exceptional_entry(page)) { |
206 | if (page) | 206 | if (page) |
207 | page_cache_release(page); | 207 | put_page(page); |
208 | continue; | 208 | continue; |
209 | } | 209 | } |
210 | swap = radix_to_swp_entry(page); | 210 | swap = radix_to_swp_entry(page); |
211 | page = read_swap_cache_async(swap, GFP_HIGHUSER_MOVABLE, | 211 | page = read_swap_cache_async(swap, GFP_HIGHUSER_MOVABLE, |
212 | NULL, 0); | 212 | NULL, 0); |
213 | if (page) | 213 | if (page) |
214 | page_cache_release(page); | 214 | put_page(page); |
215 | } | 215 | } |
216 | 216 | ||
217 | lru_add_drain(); /* Push any new pages onto the LRU now */ | 217 | lru_add_drain(); /* Push any new pages onto the LRU now */ |