mm: add variant of pagevec_lookup_range_tag() taking number of pages
[sfrench/cifs-2.6.git] / include / linux / pagevec.h
index afc718f586f85d7a1f4accc5692bde265351d17f..87a2dfd62f5e397b36550c04090d2e104dd6fdc2 100644 (file)
@@ -41,6 +41,9 @@ 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,
                int tag, unsigned nr_pages);
+unsigned pagevec_lookup_range_nr_tag(struct pagevec *pvec,
+               struct address_space *mapping, pgoff_t *index, pgoff_t end,
+               int tag, unsigned max_pages);
 static inline unsigned pagevec_lookup_tag(struct pagevec *pvec,
                struct address_space *mapping, pgoff_t *index, int tag,
                unsigned nr_pages)