mm: remove nr_pages argument from pagevec_lookup_{,range}_tag()
[sfrench/cifs-2.6.git] / fs / nilfs2 / segment.c
index 68e5769cef3b039038b12b6a422ab2ab7a2e3764..19366ab20beab7c8a27e981c99d7dc89cca814c9 100644 (file)
@@ -712,7 +712,7 @@ static size_t nilfs_lookup_dirty_data_buffers(struct inode *inode,
  repeat:
        if (unlikely(index > last) ||
            !pagevec_lookup_range_tag(&pvec, mapping, &index, last,
-                               PAGECACHE_TAG_DIRTY, PAGEVEC_SIZE))
+                               PAGECACHE_TAG_DIRTY))
                return ndirties;
 
        for (i = 0; i < pagevec_count(&pvec); i++) {
@@ -755,8 +755,8 @@ static void nilfs_lookup_dirty_node_buffers(struct inode *inode,
 
        pagevec_init(&pvec, 0);
 
-       while (pagevec_lookup_tag(&pvec, mapping, &index, PAGECACHE_TAG_DIRTY,
-                                 PAGEVEC_SIZE)) {
+       while (pagevec_lookup_tag(&pvec, mapping, &index,
+                                       PAGECACHE_TAG_DIRTY)) {
                for (i = 0; i < pagevec_count(&pvec); i++) {
                        bh = head = page_buffers(pvec.pages[i]);
                        do {