diff options
author | Sage Weil <sage@newdream.net> | 2011-05-27 13:41:55 -0700 |
---|---|---|
committer | Al Viro <viro@zeniv.linux.org.uk> | 2011-05-28 01:02:50 -0400 |
commit | 873ae4d5a8b282c6e2bbc09c6d59eeb1bec97ef7 (patch) | |
tree | 9623abaed579e054d8a5ea441e8d54fb3467f1eb /fs | |
parent | 76f0b8d2d2c8d417623142069cdfde1cf1e108d5 (diff) | |
download | linux-3.10-873ae4d5a8b282c6e2bbc09c6d59eeb1bec97ef7.tar.gz linux-3.10-873ae4d5a8b282c6e2bbc09c6d59eeb1bec97ef7.tar.bz2 linux-3.10-873ae4d5a8b282c6e2bbc09c6d59eeb1bec97ef7.zip |
sysv: remove unnecessary dentry_unhash from rmdir, dir rename
sysv does not have problems with references to unlinked directories.
CC: Christoph Hellwig <hch@infradead.org>
Signed-off-by: Sage Weil <sage@newdream.net>
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
Diffstat (limited to 'fs')
-rw-r--r-- | fs/sysv/namei.c | 5 |
1 files changed, 0 insertions, 5 deletions
diff --git a/fs/sysv/namei.c b/fs/sysv/namei.c index e2cc6756f3b..e474fbcf8bd 100644 --- a/fs/sysv/namei.c +++ b/fs/sysv/namei.c @@ -196,8 +196,6 @@ static int sysv_rmdir(struct inode * dir, struct dentry * dentry) struct inode *inode = dentry->d_inode; int err = -ENOTEMPTY; - dentry_unhash(dentry); - if (sysv_empty_dir(inode)) { err = sysv_unlink(dir, dentry); if (!err) { @@ -224,9 +222,6 @@ static int sysv_rename(struct inode * old_dir, struct dentry * old_dentry, struct sysv_dir_entry * old_de; int err = -ENOENT; - if (new_inode && S_ISDIR(new_inode->i_mode)) - dentry_unhash(new_dentry); - old_de = sysv_find_entry(old_dentry, &old_page); if (!old_de) goto out; |