diff options
-rw-r--r-- | include/linux/pagevec.h | 7 | ||||
-rw-r--r-- | mm/page_alloc.c | 10 |
2 files changed, 0 insertions, 17 deletions
diff --git a/include/linux/pagevec.h b/include/linux/pagevec.h index bab82f4c571c..ed17024d2ebe 100644 --- a/include/linux/pagevec.h +++ b/include/linux/pagevec.h | |||
@@ -21,7 +21,6 @@ struct pagevec { | |||
21 | }; | 21 | }; |
22 | 22 | ||
23 | void __pagevec_release(struct pagevec *pvec); | 23 | void __pagevec_release(struct pagevec *pvec); |
24 | void __pagevec_free(struct pagevec *pvec); | ||
25 | void ____pagevec_lru_add(struct pagevec *pvec, enum lru_list lru); | 24 | void ____pagevec_lru_add(struct pagevec *pvec, enum lru_list lru); |
26 | void pagevec_strip(struct pagevec *pvec); | 25 | void pagevec_strip(struct pagevec *pvec); |
27 | unsigned pagevec_lookup(struct pagevec *pvec, struct address_space *mapping, | 26 | unsigned pagevec_lookup(struct pagevec *pvec, struct address_space *mapping, |
@@ -67,12 +66,6 @@ static inline void pagevec_release(struct pagevec *pvec) | |||
67 | __pagevec_release(pvec); | 66 | __pagevec_release(pvec); |
68 | } | 67 | } |
69 | 68 | ||
70 | static inline void pagevec_free(struct pagevec *pvec) | ||
71 | { | ||
72 | if (pagevec_count(pvec)) | ||
73 | __pagevec_free(pvec); | ||
74 | } | ||
75 | |||
76 | static inline void __pagevec_lru_add_anon(struct pagevec *pvec) | 69 | static inline void __pagevec_lru_add_anon(struct pagevec *pvec) |
77 | { | 70 | { |
78 | ____pagevec_lru_add(pvec, LRU_INACTIVE_ANON); | 71 | ____pagevec_lru_add(pvec, LRU_INACTIVE_ANON); |
diff --git a/mm/page_alloc.c b/mm/page_alloc.c index cd0c95c6cc9e..6c77efbca5bc 100644 --- a/mm/page_alloc.c +++ b/mm/page_alloc.c | |||
@@ -2319,16 +2319,6 @@ unsigned long get_zeroed_page(gfp_t gfp_mask) | |||
2319 | } | 2319 | } |
2320 | EXPORT_SYMBOL(get_zeroed_page); | 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 | void __free_pages(struct page *page, unsigned int order) | 2322 | void __free_pages(struct page *page, unsigned int order) |
2333 | { | 2323 | { |
2334 | if (put_page_testzero(page)) { | 2324 | if (put_page_testzero(page)) { |