XFS has no problems with references to unlinked directories. Signed-off-by: Sage Weil <sage@xxxxxxxxxxxx> --- fs/xfs/linux-2.6/xfs_iops.c | 6 ------ 1 files changed, 0 insertions(+), 6 deletions(-) diff --git a/fs/xfs/linux-2.6/xfs_iops.c b/fs/xfs/linux-2.6/xfs_iops.c index f791485..dd21784 100644 --- a/fs/xfs/linux-2.6/xfs_iops.c +++ b/fs/xfs/linux-2.6/xfs_iops.c @@ -330,9 +330,6 @@ xfs_vn_unlink( struct xfs_name name; int error; - if (S_ISDIR(dentry->d_inode->i_mode)) - dentry_unhash(dentry); - xfs_dentry_to_name(&name, dentry); error = -xfs_remove(XFS_I(dir), &name, XFS_I(dentry->d_inode)); @@ -395,9 +392,6 @@ xfs_vn_rename( struct xfs_name oname; struct xfs_name nname; - if (ndentry->d_inode && S_ISDIR(ndentry->d_inode->i_mode)) - dentry_unhash(ndentry); - xfs_dentry_to_name(&oname, odentry); xfs_dentry_to_name(&nname, ndentry); -- 1.7.1 -- To unsubscribe from this list: send the line "unsubscribe linux-fsdevel" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html