diff options
author | Jan Kara <jack@suse.cz> | 2017-11-15 17:35:16 -0800 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2017-11-15 18:21:04 -0800 |
commit | 4be90299a1693c2112edb20ca78d6cc9f2183326 (patch) | |
tree | 4eda1977252f619c0b05da72a887b07683b5d637 | |
parent | 93d3b7140ad379885849ad2674b4290c9e8273da (diff) | |
download | linux-4be90299a1693c2112edb20ca78d6cc9f2183326.tar.gz linux-4be90299a1693c2112edb20ca78d6cc9f2183326.tar.bz2 linux-4be90299a1693c2112edb20ca78d6cc9f2183326.zip |
ceph: use pagevec_lookup_range_nr_tag()
Use new function for looking up pages since nr_pages argument from
pagevec_lookup_range_tag() is going away.
Link: http://lkml.kernel.org/r/20171009151359.31984-14-jack@suse.cz
Signed-off-by: Jan Kara <jack@suse.cz>
Reviewed-by: "Yan, Zheng" <zyan@redhat.com>
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>
-rw-r--r-- | fs/ceph/addr.c | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/fs/ceph/addr.c b/fs/ceph/addr.c index 1af5cc899cb4..0fc2987cb62d 100644 --- a/fs/ceph/addr.c +++ b/fs/ceph/addr.c @@ -870,11 +870,9 @@ retry: max_pages = wsize >> PAGE_SHIFT; get_more_pages: - pvec_pages = min_t(unsigned, PAGEVEC_SIZE, - max_pages - locked_pages); - pvec_pages = pagevec_lookup_range_tag(&pvec, mapping, &index, + pvec_pages = pagevec_lookup_range_nr_tag(&pvec, mapping, &index, end, PAGECACHE_TAG_DIRTY, - pvec_pages); + max_pages - locked_pages); dout("pagevec_lookup_range_tag got %d\n", pvec_pages); if (!pvec_pages && !locked_pages) break; |