]> 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)
commit98fe0ac02f604f06ddf6c1dc4a2fa4a53f78b786
tree6b63e106fcba1d22224f1b664073d1051f3bffaa
parent4e1883d9247ebd0a0dce15ce3ae541c5da2044ce
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