summaryrefslogtreecommitdiff
path: root/fs/xfs/xfs_bmap_util.c
diff options
context:
space:
mode:
authorDarrick J. Wong <darrick.wong@oracle.com>2017-09-18 16:41:16 (GMT)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2017-10-27 08:38:08 (GMT)
commit4e9de11c237724140c0ae14ead598c7fbc2847bd (patch)
tree166006019535bd6fb3e00a403adbb1db0ce8907d /fs/xfs/xfs_bmap_util.c
parent13c5e97701091f9b02ded0c68809f8a6b08c747a (diff)
downloadlinux-4e9de11c237724140c0ae14ead598c7fbc2847bd.tar.xz
xfs: don't unconditionally clear the reflink flag on zero-block files
commit cc6f77710a6de6210f9feda7cd53e2f5ee7a7e69 upstream. If we have speculative cow preallocations hanging around in the cow fork, don't let a truncate operation clear the reflink flag because if we do then there's a chance we'll forget to free those extents when we destroy the incore inode. Reported-by: Amir Goldstein <amir73il@gmail.com> Reviewed-by: Carlos Maiolino <cmaiolino@redhat.com> Reviewed-by: Christoph Hellwig <hch@lst.de> Signed-off-by: Darrick J. Wong <darrick.wong@oracle.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'fs/xfs/xfs_bmap_util.c')
0 files changed, 0 insertions, 0 deletions