diff options
Diffstat (limited to 'fs/btrfs')
-rw-r--r-- | fs/btrfs/inode.c | 7 |
1 files changed, 0 insertions, 7 deletions
diff --git a/fs/btrfs/inode.c b/fs/btrfs/inode.c index 39c1fe178f47..cde8ddde6098 100644 --- a/fs/btrfs/inode.c +++ b/fs/btrfs/inode.c | |||
@@ -2214,13 +2214,6 @@ static int btrfs_rename(struct inode * old_dir, struct dentry *old_dentry, | |||
2214 | ret = btrfs_unlink_trans(trans, root, new_dir, new_dentry); | 2214 | ret = btrfs_unlink_trans(trans, root, new_dir, new_dentry); |
2215 | if (ret) | 2215 | if (ret) |
2216 | goto out_fail; | 2216 | goto out_fail; |
2217 | if (S_ISDIR(new_inode->i_mode)) | ||
2218 | clear_nlink(new_inode); | ||
2219 | else | ||
2220 | drop_nlink(new_inode); | ||
2221 | ret = btrfs_update_inode(trans, root, new_inode); | ||
2222 | if (ret) | ||
2223 | goto out_fail; | ||
2224 | } | 2217 | } |
2225 | ret = btrfs_add_link(trans, new_dentry, old_inode); | 2218 | ret = btrfs_add_link(trans, new_dentry, old_inode); |
2226 | if (ret) | 2219 | if (ret) |