xfs: also truncate holes covered by COW blocks
authorChristoph Hellwig <hch@lst.de>
Mon, 18 Feb 2019 17:38:47 +0000 (09:38 -0800)
committerDarrick J. Wong <darrick.wong@oracle.com>
Thu, 21 Feb 2019 15:55:07 +0000 (07:55 -0800)
commit12df89f28fa92e54bfb2ae01f9ee059e74e1acc0
tree0efda47845c91699855f6e83c1ef0f7e672483ac
parent78f0cc9d55cbe75faccc0135371c45912a34e6ed
xfs: also truncate holes covered by COW blocks

This only matters if we want to write data through the COW fork that is
not actually an overwrite of existing data.  Reasons for that are
speculative COW fork allocations using the cowextsize, or a mode where
we always write through the COW fork.  Currently both can't actually
happen, but I plan to enable them.

Signed-off-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: Darrick J. Wong <darrick.wong@oracle.com>
Signed-off-by: Darrick J. Wong <darrick.wong@oracle.com>
fs/xfs/xfs_aops.c