]> asedeno.scripts.mit.edu Git - linux.git/commit
xfs: only cancel cow blocks when truncating the data fork
authorDarrick J. Wong <darrick.wong@oracle.com>
Tue, 10 Apr 2018 15:28:33 +0000 (08:28 -0700)
committerDarrick J. Wong <darrick.wong@oracle.com>
Tue, 10 Apr 2018 15:28:33 +0000 (08:28 -0700)
commit4919d42ab69a4e4601f3cd20a9540f3835e0dd48
treedd6518a92d3575e8d944fd8b0583a531bae7616d
parenta1f69417c6f4d1c5280ffb795da7778cba1e1451
xfs: only cancel cow blocks when truncating the data fork

In xfs_itruncate_extents, only cancel cow blocks and clear the reflink
flag if we were asked to truncate the data fork.  Attr fork blocks
cannot be shared, so this makes no sense.

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