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:
052e2a1
)
exofs: remove unnecessary dentry_unhash on rmdir/rename_dir
author
Sage Weil
<
[email protected]
>
Tue, 24 May 2011 20:06:20 +0000
(13:06 -0700)
committer
Al Viro
<
[email protected]
>
Thu, 26 May 2011 11:26:57 +0000
(07:26 -0400)
Exofs has no problems with lingering references to unlinked directory
inodes.
CC: Benny Halevy <
[email protected]
>
CC:
[email protected]
Acked-by: Boaz Harrosh <
[email protected]
>
Signed-off-by: Sage Weil <
[email protected]
>
Signed-off-by: Al Viro <
[email protected]
>
fs/exofs/namei.c
patch
|
blob
|
history
diff --git
a/fs/exofs/namei.c
b/fs/exofs/namei.c
index de252e5acf057932c7ac0f68a41978ef77f90e57..4d70db110cfc4d8585bf77f1f02061f66fab4127 100644
(file)
--- a/
fs/exofs/namei.c
+++ b/
fs/exofs/namei.c
@@
-227,8
+227,6
@@
static int exofs_rmdir(struct inode *dir, struct dentry *dentry)
struct inode *inode = dentry->d_inode;
int err = -ENOTEMPTY;
- dentry_unhash(dentry);
-
if (exofs_empty_dir(inode)) {
err = exofs_unlink(dir, dentry);
if (!err) {
@@
-251,9
+249,6
@@
static int exofs_rename(struct inode *old_dir, struct dentry *old_dentry,
struct exofs_dir_entry *old_de;
int err = -ENOENT;
- if (new_inode && S_ISDIR(new_inode->i_mode))
- dentry_unhash(new_dentry);
-
old_de = exofs_find_entry(old_dir, old_dentry, &old_page);
if (!old_de)
goto out;