aboutsummaryrefslogtreecommitdiffstats
path: root/mm/swap.c
diff options
context:
space:
mode:
Diffstat (limited to 'mm/swap.c')
-rw-r--r--mm/swap.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/mm/swap.c b/mm/swap.c
index b89512877ec2..154ae13d8b7e 100644
--- a/mm/swap.c
+++ b/mm/swap.c
@@ -259,6 +259,8 @@ void __pagevec_release(struct pagevec *pvec)
259 pagevec_reinit(pvec); 259 pagevec_reinit(pvec);
260} 260}
261 261
262EXPORT_SYMBOL(__pagevec_release);
263
262/* 264/*
263 * pagevec_release() for pages which are known to not be on the LRU 265 * pagevec_release() for pages which are known to not be on the LRU
264 * 266 *
@@ -270,7 +272,6 @@ void __pagevec_release_nonlru(struct pagevec *pvec)
270 struct pagevec pages_to_free; 272 struct pagevec pages_to_free;
271 273
272 pagevec_init(&pages_to_free, pvec->cold); 274 pagevec_init(&pages_to_free, pvec->cold);
273 pages_to_free.cold = pvec->cold;
274 for (i = 0; i < pagevec_count(pvec); i++) { 275 for (i = 0; i < pagevec_count(pvec); i++) {
275 struct page *page = pvec->pages[i]; 276 struct page *page = pvec->pages[i];
276 277
@@ -388,6 +389,7 @@ unsigned pagevec_lookup_tag(struct pagevec *pvec, struct address_space *mapping,
388 return pagevec_count(pvec); 389 return pagevec_count(pvec);
389} 390}
390 391
392EXPORT_SYMBOL(pagevec_lookup_tag);
391 393
392#ifdef CONFIG_SMP 394#ifdef CONFIG_SMP
393/* 395/*