mm: use pagevec_lookup_range_tag() in write_cache_pages()
authorJan Kara <[email protected]>
Thu, 16 Nov 2017 01:35:09 +0000 (17:35 -0800)
committerLinus Torvalds <[email protected]>
Thu, 16 Nov 2017 02:21:04 +0000 (18:21 -0800)
commit2b9775ae422fa46b4aee2bb2a8d2184a5a3b90e0
treec9ddb86cd863d381b72594fbbce2e693c2b780bc
parent312e9d2f7053f480627dcaf5e14f9cae78e3715a
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/[email protected]
Signed-off-by: Jan Kara <[email protected]>
Reviewed-by: Daniel Jordan <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
Signed-off-by: Linus Torvalds <[email protected]>
mm/page-writeback.c