]> git.baikalelectronics.ru Git - kernel.git/commit
ext4: use pagevec_lookup_range() in ext4_find_unwritten_pgoff()
authorJan Kara <jack@suse.cz>
Wed, 6 Sep 2017 23:21:27 +0000 (16:21 -0700)
committerLinus Torvalds <torvalds@linux-foundation.org>
Thu, 7 Sep 2017 00:27:26 +0000 (17:27 -0700)
commite96a548df5997f87fc0d0b1278436f106e7e912c
treeff616fc5f7fb3c24ac421473b6e068d20158a185
parent1109463b882a21376db6246a930632af864ec3c7
ext4: use pagevec_lookup_range() in ext4_find_unwritten_pgoff()

Use pagevec_lookup_range() in ext4_find_unwritten_pgoff() since we are
interested only in pages in the given range.  Simplify the logic as a
result of not getting pages out of range and index getting automatically
advanced.

Link: http://lkml.kernel.org/r/20170726114704.7626-6-jack@suse.cz
Signed-off-by: Jan Kara <jack@suse.cz>
Cc: "Theodore Ts'o" <tytso@mit.edu>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
fs/ext4/file.c