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

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

Link: http://lkml.kernel.org/r/20171009151359.31984-12-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/page-writeback.c