Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 252706
b: refs/heads/master
c: 873ae4d
h: refs/heads/master
v: v3
  • Loading branch information
Sage Weil authored and Al Viro committed May 28, 2011
1 parent 79115f2 commit 86e996b
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: 76f0b8d2d2c8d417623142069cdfde1cf1e108d5
refs/heads/master: 873ae4d5a8b282c6e2bbc09c6d59eeb1bec97ef7
5 changes: 0 additions & 5 deletions trunk/fs/sysv/namei.c
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand All @@ -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;
Expand Down

0 comments on commit 86e996b

Please sign in to comment.