mm: remove pagevec_lookup_range_nr_tag
PATCH 1/1 mm: remove pagevec_lookup_range_nr_tag
With the merge of 2e1692966034 (ceph: have ceph_writepages_start call pagevec_lookup_range_tag), nothing calls this anymore.
Cc Matthew Wilcox <[email protected]>
Signed-off-by Jeff Layton <[email protected]>
--- include/linux/pagevec.h | 3 --- mm/swap.c | 9 --------- 2 files changed, 12 deletions(-)
include/linux/pagevec.h +0 -3
@@ -43,9 +43,6 @@ static inline unsigned pagevec_lookup(struct pagevec *pvec,unsigned pagevec_lookup_range_tag (struct pagevec *pvec,struct address_space *mapping,pgoff_t *index,pgoff_t end,xa_mark_t tag); -unsigned pagevec_lookup_range_nr_tag (struct pagevec *pvec, -struct address_space *mapping,pgoff_t *index,pgoff_t end, -xa_mark_t tag,unsigned max_pages);static inline unsigned pagevec_lookup_tag (struct pagevec *pvec,struct address_space *mapping,pgoff_t *index,xa_mark_t tag) {
mm/swap.c +0 -9
@@ -1164,15 +1164,6 @@ unsigned pagevec_lookup_range_tag(struct pagevec *pvec, }EXPORT_SYMBOL (pagevec_lookup_range_tag); -unsigned pagevec_lookup_range_nr_tag (struct pagevec *pvec, -struct address_space *mapping,pgoff_t *index,pgoff_t end, -xa_mark_t tag,unsigned max_pages) -{ - pvec->nr =find_get_pages_range_tag (mapping, index, end, tag, - min_t(unsigned int, max_pages, PAGEVEC_SIZE), pvec->pages); -return pagevec_count (pvec); -} -EXPORT_SYMBOL (pagevec_lookup_range_nr_tag);/* * Perform any setup for the swap system */
Signature · 1 line
2.26.2
Quoted 5 lines · Jeff Layton
With the merge of
2e1692966034(ceph: haveceph_writepages_startcallpagevec_lookup_range_tag), nothing calls this anymore.Cc Matthew Wilcox <[email protected]>Signed-off-by Jeff Layton <[email protected]>
Reviewed-by Matthew Wilcox (Oracle) <[email protected]>