Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 252727
b: refs/heads/master
c: b80d2c2
h: refs/heads/master
i:
  252725: 85d54d8
  252723: cf3f9a0
  252719: 1f1ec06
v: v3
  • Loading branch information
Sage Weil authored and Al Viro committed May 28, 2011
1 parent bdfc5da commit 5520874
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: 526e7ce5528c8addcf154acec41b615f71dce7e1
refs/heads/master: b80d2c228d8206cadc32226750dbbf3b707bdd19
5 changes: 0 additions & 5 deletions trunk/fs/minix/namei.c
Original file line number Diff line number Diff line change
Expand Up @@ -168,8 +168,6 @@ static int minix_rmdir(struct inode * dir, struct dentry *dentry)
struct inode * inode = dentry->d_inode;
int err = -ENOTEMPTY;

dentry_unhash(dentry);

if (minix_empty_dir(inode)) {
err = minix_unlink(dir, dentry);
if (!err) {
Expand All @@ -192,9 +190,6 @@ static int minix_rename(struct inode * old_dir, struct dentry *old_dentry,
struct minix_dir_entry * old_de;
int err = -ENOENT;

if (new_inode && S_ISDIR(new_inode->i_mode))
dentry_unhash(new_dentry);

old_de = minix_find_entry(old_dentry, &old_page);
if (!old_de)
goto out;
Expand Down

0 comments on commit 5520874

Please sign in to comment.