Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

mm: remove unused pagevec_free

It not exported and now nobody uses it.

Signed-off-by: Konstantin Khlebnikov <khlebnikov@openvz.org>
Cc: Mel Gorman <mel@csn.ul.ie>
Cc: KOSAKI Motohiro <kosaki.motohiro@jp.fujitsu.com>
Reviewed-by: Minchan Kim <minchan.kim@gmail.com>
Acked-by: Hugh Dickins <hughd@google.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>

authored by

Konstantin Khlebnikov and committed by
Linus Torvalds
da066ad3 cc59850e

-17
-7
include/linux/pagevec.h
··· 21 21 }; 22 22 23 23 void __pagevec_release(struct pagevec *pvec); 24 - void __pagevec_free(struct pagevec *pvec); 25 24 void ____pagevec_lru_add(struct pagevec *pvec, enum lru_list lru); 26 25 void pagevec_strip(struct pagevec *pvec); 27 26 unsigned pagevec_lookup(struct pagevec *pvec, struct address_space *mapping, ··· 64 65 { 65 66 if (pagevec_count(pvec)) 66 67 __pagevec_release(pvec); 67 - } 68 - 69 - static inline void pagevec_free(struct pagevec *pvec) 70 - { 71 - if (pagevec_count(pvec)) 72 - __pagevec_free(pvec); 73 68 } 74 69 75 70 static inline void __pagevec_lru_add_anon(struct pagevec *pvec)
-10
mm/page_alloc.c
··· 2319 2319 } 2320 2320 EXPORT_SYMBOL(get_zeroed_page); 2321 2321 2322 - void __pagevec_free(struct pagevec *pvec) 2323 - { 2324 - int i = pagevec_count(pvec); 2325 - 2326 - while (--i >= 0) { 2327 - trace_mm_pagevec_free(pvec->pages[i], pvec->cold); 2328 - free_hot_cold_page(pvec->pages[i], pvec->cold); 2329 - } 2330 - } 2331 - 2332 2322 void __free_pages(struct page *page, unsigned int order) 2333 2323 { 2334 2324 if (put_page_testzero(page)) {