projects
/
GitHub
/
exynos8895
/
android_kernel_samsung_universal8895.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
4b4563d
)
bfs: remove unnecessary dentry_unhash on dir rename
author
Sage Weil
<sage@newdream.net>
Fri, 27 May 2011 20:41:54 +0000
(13:41 -0700)
committer
Al Viro
<viro@zeniv.linux.org.uk>
Sat, 28 May 2011 05:02:50 +0000
(
01:02
-0400)
Bfs does not have problems with references to unlinked directories.
CC: tigran@aivazian.fsnet.co.uk
Signed-off-by: Sage Weil <sage@newdream.net>
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
fs/bfs/dir.c
patch
|
blob
|
blame
|
history
diff --git
a/fs/bfs/dir.c
b/fs/bfs/dir.c
index c7d1d06b0483e3713f491cdad1d4cc3ce91500fe..b14cebfd90477ead4b15f0c1583da6393c247de5 100644
(file)
--- a/
fs/bfs/dir.c
+++ b/
fs/bfs/dir.c
@@
-224,9
+224,6
@@
static int bfs_rename(struct inode *old_dir, struct dentry *old_dentry,
struct bfs_sb_info *info;
int error = -ENOENT;
- if (new_dentry->d_inode && S_ISDIR(new_dentry->d_inode->i_mode))
- dentry_unhash(new_dentry);
-
old_bh = new_bh = NULL;
old_inode = old_dentry->d_inode;
if (S_ISDIR(old_inode->i_mode))