summaryrefslogtreecommitdiff
path: root/mm/swap.c
diff options
context:
space:
mode:
authorJan Kara <jack@suse.cz>2017-11-15 17:35:19 -0800
committerJaegeuk Kim <jaegeuk@kernel.org>2018-07-08 17:37:49 -0700
commit91e7d9d2ddbfda40393c8400e3d0b4852ea3c6d0 (patch)
tree14759d6cc990bb8fbd66b9f4f14debe75aaa2476 /mm/swap.c
parentfeb94dc82928286a323576eaaadfec057d474112 (diff)
mm: remove nr_pages argument from pagevec_lookup_{,range}_tag()
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/20171009151359.31984-15-jack@suse.cz Signed-off-by: Jan Kara <jack@suse.cz> Reviewed-by: Daniel Jordan <daniel.m.jordan@oracle.com> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'mm/swap.c')
-rw-r--r--mm/swap.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/mm/swap.c b/mm/swap.c
index bef40c04f864..8e6bcb688779 100644
--- a/mm/swap.c
+++ b/mm/swap.c
@@ -1132,10 +1132,10 @@ EXPORT_SYMBOL(pagevec_lookup);
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)
{
pvec->nr = find_get_pages_range_tag(mapping, index, end, tag,
- nr_pages, pvec->pages);
+ PAGEVEC_SIZE, pvec->pages);
return pagevec_count(pvec);
}
EXPORT_SYMBOL(pagevec_lookup_range_tag);