projects
/
GitHub
/
moto-9609
/
android_kernel_motorola_exynos9610.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
3de3f77
)
Btrfs: Fix extra link count dec in rename
author
Chris Mason
<chris.mason@oracle.com>
Fri, 14 Sep 2007 13:42:31 +0000
(09:42 -0400)
committer
David Woodhouse
<dwmw2@hera.kernel.org>
Fri, 14 Sep 2007 13:42:31 +0000
(09:42 -0400)
Signed-off-by: Chris Mason <chris.mason@oracle.com>
fs/btrfs/inode.c
patch
|
blob
|
blame
|
history
diff --git
a/fs/btrfs/inode.c
b/fs/btrfs/inode.c
index 39c1fe178f477169b064fa71537ece6e68944458..cde8ddde609820429146450d65ebc791dd2bc71f 100644
(file)
--- 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,
ret = btrfs_unlink_trans(trans, root, new_dir, new_dentry);
if (ret)
goto out_fail;
- if (S_ISDIR(new_inode->i_mode))
- clear_nlink(new_inode);
- else
- drop_nlink(new_inode);
- ret = btrfs_update_inode(trans, root, new_inode);
- if (ret)
- goto out_fail;
}
ret = btrfs_add_link(trans, new_dentry, old_inode);
if (ret)