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:
76f0b8d
)
sysv: remove unnecessary dentry_unhash from rmdir, dir rename
author
Sage Weil
<
[email protected]
>
Fri, 27 May 2011 20:41:55 +0000
(13:41 -0700)
committer
Al Viro
<
[email protected]
>
Sat, 28 May 2011 05:02:50 +0000
(
01:02
-0400)
sysv does not have problems with references to unlinked directories.
CC: Christoph Hellwig <
[email protected]
>
Signed-off-by: Sage Weil <
[email protected]
>
Signed-off-by: Al Viro <
[email protected]
>
fs/sysv/namei.c
patch
|
blob
|
history
diff --git
a/fs/sysv/namei.c
b/fs/sysv/namei.c
index e2cc6756f3b1595600d8ae25f537b4e1b0b19855..e474fbcf8bde991924da62e321d2be7eae8ac5f6 100644
(file)
--- 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;