Commit da066ad3570b88e7dee82e76a06ee9a7adffcf0d
Committed by
Linus Torvalds
1 parent
cc59850ef9
Exists in
master
and in
6 other branches
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>
Showing 2 changed files with 0 additions and 17 deletions Side-by-side Diff
include/linux/pagevec.h
... | ... | @@ -21,7 +21,6 @@ |
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, |
... | ... | @@ -65,12 +64,6 @@ |
65 | 64 | { |
66 | 65 | if (pagevec_count(pvec)) |
67 | 66 | __pagevec_release(pvec); |
68 | -} | |
69 | - | |
70 | -static inline void pagevec_free(struct pagevec *pvec) | |
71 | -{ | |
72 | - if (pagevec_count(pvec)) | |
73 | - __pagevec_free(pvec); | |
74 | 67 | } |
75 | 68 | |
76 | 69 | static inline void __pagevec_lru_add_anon(struct pagevec *pvec) |
mm/page_alloc.c
... | ... | @@ -2319,16 +2319,6 @@ |
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)) { |