Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 251695
b: refs/heads/master
c: f64f58f
h: refs/heads/master
i:
  251693: d40760a
  251691: 4fd0b08
  251687: 9ca4fc1
  251679: a1a2e63
v: v3
  • Loading branch information
Sage Weil authored and Al Viro committed May 26, 2011
1 parent fb5822c commit 7660fbe
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: 051e8f0ee23c9ca963e2a0208153c6cd475f05fb
refs/heads/master: f64f58f85403a5a8a21f1fbbc7798e56580785cf
5 changes: 0 additions & 5 deletions trunk/fs/btrfs/inode.c
Original file line number Diff line number Diff line change
Expand Up @@ -3062,8 +3062,6 @@ static int btrfs_rmdir(struct inode *dir, struct dentry *dentry)
inode->i_ino == BTRFS_FIRST_FREE_OBJECTID)
return -ENOTEMPTY;

dentry_unhash(dentry);

trans = __unlink_start_trans(dir, dentry);
if (IS_ERR(trans))
return PTR_ERR(trans);
Expand Down Expand Up @@ -6994,9 +6992,6 @@ static int btrfs_rename(struct inode *old_dir, struct dentry *old_dentry,
u64 root_objectid;
int ret;

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

if (new_dir->i_ino == BTRFS_EMPTY_SUBVOL_DIR_OBJECTID)
return -EPERM;

Expand Down

0 comments on commit 7660fbe

Please sign in to comment.