diff options
author | Sage Weil <sage@newdream.net> | 2011-05-24 13:06:20 -0700 |
---|---|---|
committer | Al Viro <viro@zeniv.linux.org.uk> | 2011-05-26 07:26:57 -0400 |
commit | 8cbfa53b1cd08ae3b315bbb55f7396f5a6a6a4f7 (patch) | |
tree | 29d02280724a1eb446b5920d041466b26f92c80c | |
parent | 052e2a1ba2d07e724ae9cc0608389292276cb77a (diff) | |
download | linux-3.10-8cbfa53b1cd08ae3b315bbb55f7396f5a6a6a4f7.tar.gz linux-3.10-8cbfa53b1cd08ae3b315bbb55f7396f5a6a6a4f7.tar.bz2 linux-3.10-8cbfa53b1cd08ae3b315bbb55f7396f5a6a6a4f7.zip |
exofs: remove unnecessary dentry_unhash on rmdir/rename_dir
Exofs has no problems with lingering references to unlinked directory
inodes.
CC: Benny Halevy <bhalevy@panasas.com>
CC: osd-dev@open-osd.org
Acked-by: Boaz Harrosh <bharrosh@panasas.com>
Signed-off-by: Sage Weil <sage@newdream.net>
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
-rw-r--r-- | fs/exofs/namei.c | 5 |
1 files changed, 0 insertions, 5 deletions
diff --git a/fs/exofs/namei.c b/fs/exofs/namei.c index de252e5acf0..4d70db110cf 100644 --- 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; |