mm: use pagevec_lookup_range_tag() in __filemap_fdatawait_range()
authorJan Kara <jack@suse.cz>
Thu, 16 Nov 2017 01:35:05 +0000 (17:35 -0800)
committerJaegeuk Kim <jaegeuk@kernel.org>
Thu, 28 Jun 2018 22:49:24 +0000 (15:49 -0700)
commita01f2023a8379484cbc7a8625fe1b643f7b90c51
treedb0ab306126824e85e6b3ca8a39e4fff31db2c0a
parented5739e31ed8b4d719593feb419d9d3b1ebbac0f
mm: use pagevec_lookup_range_tag() in __filemap_fdatawait_range()

Use pagevec_lookup_range_tag() in __filemap_fdatawait_range() as it is
interested only in pages from given range.  Remove unnecessary code
resulting from this.

Link: http://lkml.kernel.org/r/20171009151359.31984-11-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>
mm/filemap.c