mm: remove nr_pages argument from pagevec_lookup_{,range}_tag()
[sfrench/cifs-2.6.git] / include / linux / pagevec.h
index 87a2dfd62f5e397b36550c04090d2e104dd6fdc2..4f56e0ad9d0003390b19541110b809689817b863 100644 (file)
@@ -40,16 +40,14 @@ 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);
+               int tag);
 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)
+               struct address_space *mapping, pgoff_t *index, int tag)
 {
-       return pagevec_lookup_range_tag(pvec, mapping, index, (pgoff_t)-1, tag,
-                                       nr_pages);
+       return pagevec_lookup_range_tag(pvec, mapping, index, (pgoff_t)-1, tag);
 }
 
 static inline void pagevec_init(struct pagevec *pvec, int cold)