diff options
Diffstat (limited to 'mm/swap.c')
-rw-r--r-- | mm/swap.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -48,7 +48,7 @@ void put_page(struct page *page) | |||
48 | } | 48 | } |
49 | return; | 49 | return; |
50 | } | 50 | } |
51 | if (!PageReserved(page) && put_page_testzero(page)) | 51 | if (put_page_testzero(page)) |
52 | __page_cache_release(page); | 52 | __page_cache_release(page); |
53 | } | 53 | } |
54 | EXPORT_SYMBOL(put_page); | 54 | EXPORT_SYMBOL(put_page); |
@@ -215,7 +215,7 @@ void release_pages(struct page **pages, int nr, int cold) | |||
215 | struct page *page = pages[i]; | 215 | struct page *page = pages[i]; |
216 | struct zone *pagezone; | 216 | struct zone *pagezone; |
217 | 217 | ||
218 | if (PageReserved(page) || !put_page_testzero(page)) | 218 | if (!put_page_testzero(page)) |
219 | continue; | 219 | continue; |
220 | 220 | ||
221 | pagezone = page_zone(page); | 221 | pagezone = page_zone(page); |