Commit 4be90299 authored by Jan Kara's avatar Jan Kara Committed by Linus Torvalds

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: Jan Kara's avatarJan Kara <>
Reviewed-by: default avatar"Yan, Zheng" <>
Reviewed-by: default avatarDaniel Jordan <>
Signed-off-by: default avatarAndrew Morton <>
Signed-off-by: default avatarLinus Torvalds <>
parent 93d3b714
......@@ -870,11 +870,9 @@ static int ceph_writepages_start(struct address_space *mapping,
max_pages = wsize >> PAGE_SHIFT;
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,
max_pages - locked_pages);
dout("pagevec_lookup_range_tag got %d\n", pvec_pages);
if (!pvec_pages && !locked_pages)
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment