Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 252710
b: refs/heads/master
c: dfb55de
h: refs/heads/master
v: v3
  • Loading branch information
Sage Weil authored and Al Viro committed May 28, 2011
1 parent d01247a commit 3546d55
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: 64370e2f9df572977757d70b1ad293b743dd9e20
refs/heads/master: dfb55de89879a1c32a70d0a510b3701ed9a6b855
5 changes: 0 additions & 5 deletions trunk/fs/nilfs2/namei.c
Original file line number Diff line number Diff line change
Expand Up @@ -334,8 +334,6 @@ static int nilfs_rmdir(struct inode *dir, struct dentry *dentry)
struct nilfs_transaction_info ti;
int err;

dentry_unhash(dentry);

err = nilfs_transaction_begin(dir->i_sb, &ti, 0);
if (err)
return err;
Expand Down Expand Up @@ -371,9 +369,6 @@ static int nilfs_rename(struct inode *old_dir, struct dentry *old_dentry,
struct nilfs_transaction_info ti;
int err;

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

err = nilfs_transaction_begin(old_dir->i_sb, &ti, 1);
if (unlikely(err))
return err;
Expand Down

0 comments on commit 3546d55

Please sign in to comment.