Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 252712
b: refs/heads/master
c: 87161fa
h: refs/heads/master
v: v3
  • Loading branch information
Sage Weil authored and Al Viro committed May 28, 2011
1 parent 85a3bfa commit 167e83d
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: 0e54ec1c3a002a9d5e57b5ac73a934cc15a0fe06
refs/heads/master: 87161faae26503a8ebe1be5ba72073ae860dbfc7
5 changes: 0 additions & 5 deletions trunk/fs/ufs/namei.c
Original file line number Diff line number Diff line change
Expand Up @@ -258,8 +258,6 @@ static int ufs_rmdir (struct inode * dir, struct dentry *dentry)
struct inode * inode = dentry->d_inode;
int err= -ENOTEMPTY;

dentry_unhash(dentry);

lock_ufs(dir->i_sb);
if (ufs_empty_dir (inode)) {
err = ufs_unlink(dir, dentry);
Expand All @@ -284,9 +282,6 @@ static int ufs_rename(struct inode *old_dir, struct dentry *old_dentry,
struct ufs_dir_entry *old_de;
int err = -ENOENT;

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

old_de = ufs_find_entry(old_dir, &old_dentry->d_name, &old_page);
if (!old_de)
goto out;
Expand Down

0 comments on commit 167e83d

Please sign in to comment.