]> git.ipfire.org Git - thirdparty/xfsprogs-dev.git/commitdiff
libxfs: free the CoW fork from an inode
authorDarrick J. Wong <darrick.wong@oracle.com>
Tue, 25 Oct 2016 22:14:31 +0000 (15:14 -0700)
committerDarrick J. Wong <darrick.wong@oracle.com>
Wed, 26 Oct 2016 18:13:49 +0000 (11:13 -0700)
Clean up the CoW fork, should there ever be one.

Signed-off-by: Darrick J. Wong <darrick.wong@oracle.com>
libxfs/rdwr.c

index 526bc6205c14633bca14cee6679fb38608e5296f..8b22eb402b6b2f8559b5d014de9118265d288204 100644 (file)
@@ -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