From: Darrick J. Wong Date: Tue, 25 Oct 2016 22:14:31 +0000 (-0700) Subject: libxfs: free the CoW fork from an inode X-Git-Tag: v4.9.0-rc1~58 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=a90b9ad20857ae37f8e2519ddf3fc4ca0c1459ec;p=thirdparty%2Fxfsprogs-dev.git libxfs: free the CoW fork from an inode Clean up the CoW fork, should there ever be one. Signed-off-by: Darrick J. Wong --- diff --git a/libxfs/rdwr.c b/libxfs/rdwr.c index 526bc6205..8b22eb402 100644 --- a/libxfs/rdwr.c +++ b/libxfs/rdwr.c @@ -1372,6 +1372,8 @@ libxfs_idestroy(xfs_inode_t *ip) } if (ip->i_afp) libxfs_idestroy_fork(ip, XFS_ATTR_FORK); + if (ip->i_cowfp) + xfs_idestroy_fork(ip, XFS_COW_FORK); } void