summaryrefslogtreecommitdiffstats
path: root/include/linux/pagevec.h
diff options
context:
space:
mode:
authorJan Kara <jack@suse.cz>2017-09-06 19:21:43 -0400
committerLinus Torvalds <torvalds@linux-foundation.org>2017-09-06 20:27:27 -0400
commit397162ffa2ed1cadffe05c324c6ddc53647f9c62 (patch)
tree4a084bf8baee85c2b0624bba4907ceb72ace416c /include/linux/pagevec.h
parentf7b68046873724129798c405e1a4e326b409c08f (diff)
mm: remove nr_pages argument from pagevec_lookup{,_range}()
All users of pagevec_lookup() and pagevec_lookup_range() now pass PAGEVEC_SIZE as a desired number of pages. Just drop the argument. Link: http://lkml.kernel.org/r/20170726114704.7626-11-jack@suse.cz Signed-off-by: Jan Kara <jack@suse.cz> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'include/linux/pagevec.h')
-rw-r--r--include/linux/pagevec.h7
1 files changed, 3 insertions, 4 deletions
diff --git a/include/linux/pagevec.h b/include/linux/pagevec.h
index 7df056910437..4dcd5506f1ed 100644
--- a/include/linux/pagevec.h
+++ b/include/linux/pagevec.h
@@ -29,13 +29,12 @@ unsigned pagevec_lookup_entries(struct pagevec *pvec,
29void pagevec_remove_exceptionals(struct pagevec *pvec); 29void pagevec_remove_exceptionals(struct pagevec *pvec);
30unsigned pagevec_lookup_range(struct pagevec *pvec, 30unsigned pagevec_lookup_range(struct pagevec *pvec,
31 struct address_space *mapping, 31 struct address_space *mapping,
32 pgoff_t *start, pgoff_t end, unsigned nr_pages); 32 pgoff_t *start, pgoff_t end);
33static inline unsigned pagevec_lookup(struct pagevec *pvec, 33static inline unsigned pagevec_lookup(struct pagevec *pvec,
34 struct address_space *mapping, 34 struct address_space *mapping,
35 pgoff_t *start, unsigned nr_pages) 35 pgoff_t *start)
36{ 36{
37 return pagevec_lookup_range(pvec, mapping, start, (pgoff_t)-1, 37 return pagevec_lookup_range(pvec, mapping, start, (pgoff_t)-1);
38 nr_pages);
39} 38}
40 39
41unsigned pagevec_lookup_tag(struct pagevec *pvec, 40unsigned pagevec_lookup_tag(struct pagevec *pvec,