Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 251698
b: refs/heads/master
c: 5afcb94
h: refs/heads/master
v: v3
  • Loading branch information
Sage Weil authored and Al Viro committed May 26, 2011
1 parent 7cd37b8 commit 773ead1
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: 5a61a245f7489feec865264e2627c5071aef8c66
refs/heads/master: 5afcb940fa37f57d124155f30a1a8d7794a476e0
5 changes: 0 additions & 5 deletions trunk/fs/ext2/namei.c
Original file line number Diff line number Diff line change
Expand Up @@ -296,8 +296,6 @@ static int ext2_rmdir (struct inode * dir, struct dentry *dentry)
struct inode * inode = dentry->d_inode;
int err = -ENOTEMPTY;

dentry_unhash(dentry);

if (ext2_empty_dir(inode)) {
err = ext2_unlink(dir, dentry);
if (!err) {
Expand All @@ -320,9 +318,6 @@ static int ext2_rename (struct inode * old_dir, struct dentry * old_dentry,
struct ext2_dir_entry_2 * old_de;
int err = -ENOENT;

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

dquot_initialize(old_dir);
dquot_initialize(new_dir);

Expand Down

0 comments on commit 773ead1

Please sign in to comment.