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>
This commit is contained in:
+1
-2
@@ -1162,8 +1162,7 @@ release_pvec_pages:
|
||||
index = 0;
|
||||
while ((index <= end) &&
|
||||
(nr = pagevec_lookup_tag(&pvec, mapping, &index,
|
||||
PAGECACHE_TAG_WRITEBACK,
|
||||
PAGEVEC_SIZE))) {
|
||||
PAGECACHE_TAG_WRITEBACK))) {
|
||||
for (i = 0; i < nr; i++) {
|
||||
page = pvec.pages[i];
|
||||
if (page_snap_context(page) != snapc)
|
||||
|
||||
Reference in New Issue
Block a user