]> git.baikalelectronics.ru Git - kernel.git/commit
fs: remove the buffer_unwritten check in page_seek_hole_data
authorChristoph Hellwig <hch@lst.de>
Fri, 1 Jun 2018 16:05:14 +0000 (09:05 -0700)
committerDarrick J. Wong <darrick.wong@oracle.com>
Sat, 2 Jun 2018 01:37:33 +0000 (18:37 -0700)
commit8140eef5d37a1424a8a7963d7115f089f14b3e08
tree9219eb7b6e88a9f7dbcb3bd14b31a523ac5412e4
parent0195ba08ed71334f2d91ffe36f7121d486c1829e
fs: remove the buffer_unwritten check in page_seek_hole_data

We only call into this function through the iomap iterators, so we already
know the buffer is unwritten.  In addition to that we always require the
uptodate flag that is ORed with the result anyway.

Signed-off-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: Andreas Gruenbacher <agruenba@redhat.com>
Reviewed-by: Darrick J. Wong <darrick.wong@oracle.com>
Reviewed-by: Dave Chinner <dchinner@redhat.com>
Signed-off-by: Darrick J. Wong <darrick.wong@oracle.com>
fs/iomap.c