]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit2e0e89bca2d7e8578095cabfca9afd97ac0b13ba
tree6b63e106fcba1d22224f1b664073d1051f3bffaa
parent028c7d56459acbfaca661150222f6b14b0647c1f
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