]> git.proxmox.com Git - mirror_ubuntu-eoan-kernel.git/commit
xfs: don't allocate COW blocks for zeroing holes or unwritten extents
authorChristoph Hellwig <hch@lst.de>
Thu, 1 Mar 2018 22:10:31 +0000 (14:10 -0800)
committerDarrick J. Wong <darrick.wong@oracle.com>
Thu, 1 Mar 2018 22:10:31 +0000 (14:10 -0800)
commit172ed391f6e40f799273e005405041b57c343cf7
tree787b5bb07ae62d394d988aaa3333a42aa09c04ae
parent5b4c845ea4f4b86c43096eb924354c83a2e26f3c
xfs: don't allocate COW blocks for zeroing holes or unwritten extents

The iomap zeroing interface is smart enough to skip zeroing holes or
unwritten extents.  Don't subvert this logic for reflink files.

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/xfs/xfs_iomap.c