Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 251700
b: refs/heads/master
c: 8cbfa53
h: refs/heads/master
v: v3
  • Loading branch information
Sage Weil authored and Al Viro committed May 26, 2011
1 parent 755ae55 commit 66fa886
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 6 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 052e2a1ba2d07e724ae9cc0608389292276cb77a
refs/heads/master: 8cbfa53b1cd08ae3b315bbb55f7396f5a6a6a4f7
5 changes: 0 additions & 5 deletions trunk/fs/exofs/namei.c
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand All @@ -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;
Expand Down

0 comments on commit 66fa886

Please sign in to comment.