Skip to content

Commit

Permalink
bfs: remove unnecessary dentry_unhash on dir rename
Browse files Browse the repository at this point in the history
Bfs does not have problems with references to unlinked directories.

CC: [email protected]
Signed-off-by: Sage Weil <[email protected]>
Signed-off-by: Al Viro <[email protected]>
  • Loading branch information
liewegas authored and Al Viro committed May 28, 2011
1 parent 4b4563d commit 76f0b8d
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions fs/bfs/dir.c
Original file line number Diff line number Diff line change
Expand Up @@ -224,9 +224,6 @@ static int bfs_rename(struct inode *old_dir, struct dentry *old_dentry,
struct bfs_sb_info *info;
int error = -ENOENT;

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

old_bh = new_bh = NULL;
old_inode = old_dentry->d_inode;
if (S_ISDIR(old_inode->i_mode))
Expand Down

0 comments on commit 76f0b8d

Please sign in to comment.