]> git.proxmox.com Git - mirror_ubuntu-bionic-kernel.git/commit - mm/page-writeback.c
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)
committerLinus Torvalds <torvalds@linux-foundation.org>
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/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