projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
e391178
)
hostfs: remove unnecessary dentry_unhash on rmdir, dir rename
author
Sage Weil
<
[email protected]
>
Fri, 27 May 2011 20:42:07 +0000
(13:42 -0700)
committer
Al Viro
<
[email protected]
>
Sat, 28 May 2011 05:02:52 +0000
(
01:02
-0400)
hostfs does not have problems with references to unlinked directories.
CC: Jeff Dike <
[email protected]
>
CC: Richard Weinberger <
[email protected]
>
CC:
[email protected]
Signed-off-by: Sage Weil <
[email protected]
>
Signed-off-by: Al Viro <
[email protected]
>
fs/hostfs/hostfs_kern.c
patch
|
blob
|
history
diff --git
a/fs/hostfs/hostfs_kern.c
b/fs/hostfs/hostfs_kern.c
index e6816b9e6903e0d80d4ab7505ad84b276ec12baa..2638c834ed281db783f6a7cd5ef24e2edb2047e4 100644
(file)
--- a/
fs/hostfs/hostfs_kern.c
+++ b/
fs/hostfs/hostfs_kern.c
@@
-683,8
+683,6
@@
int hostfs_rmdir(struct inode *ino, struct dentry *dentry)
char *file;
int err;
- dentry_unhash(dentry);
-
if ((file = dentry_name(dentry)) == NULL)
return -ENOMEM;
err = do_rmdir(file);
@@
-738,9
+736,6
@@
int hostfs_rename(struct inode *from_ino, struct dentry *from,
char *from_name, *to_name;
int err;
- if (to->d_inode && S_ISDIR(to->d_inode->i_mode))
- dentry_unhash(to);
-
if ((from_name = dentry_name(from)) == NULL)
return -ENOMEM;
if ((to_name = dentry_name(to)) == NULL) {