]> git.ipfire.org Git - thirdparty/linux.git/commit - fs/iomap.c
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)
commitbd56b3e14410b8cf6a4c13c94f7065341b179517
tree9219eb7b6e88a9f7dbcb3bd14b31a523ac5412e4
parent8a78cb1f1b98e5ea970674e0f049832d19e76ace
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