iomap: zero newly allocated mapped blocks
authorChristoph Hellwig <hch@lst.de>
Thu, 17 Oct 2019 20:12:12 +0000 (13:12 -0700)
committerDarrick J. Wong <darrick.wong@oracle.com>
Mon, 21 Oct 2019 15:51:59 +0000 (08:51 -0700)
commit009d8d849d3ff59b1a23d2df2c55f2130b2ec7f2
tree6b63e106fcba1d22224f1b664073d1051f3bffaa
parent760fea8bfb7f6095df3c4d37987b86b818f78c88
iomap: zero newly allocated mapped blocks

File systems like gfs2 don't support delayed allocations or unwritten
extents and thus allocate normal mapped blocks to fill holes.  To
cover the case of such file systems allocating new blocks to fill holes
also zero out mapped blocks with the new flag.

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