Skip to content

Commit 76f0b8d

Browse files
liewegasAl Viro
authored andcommitted
bfs: remove unnecessary dentry_unhash on dir rename
Bfs does not have problems with references to unlinked directories. CC: tigran@aivazian.fsnet.co.uk Signed-off-by: Sage Weil <sage@newdream.net> Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
1 parent 4b4563d commit 76f0b8d

1 file changed

Lines changed: 0 additions & 3 deletions

File tree

‎fs/bfs/dir.c‎

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -224,9 +224,6 @@ static int bfs_rename(struct inode *old_dir, struct dentry *old_dentry,
224224
struct bfs_sb_info *info;
225225
int error = -ENOENT;
226226

227-
if (new_dentry->d_inode && S_ISDIR(new_dentry->d_inode->i_mode))
228-
dentry_unhash(new_dentry);
229-
230227
old_bh = new_bh = NULL;
231228
old_inode = old_dentry->d_inode;
232229
if (S_ISDIR(old_inode->i_mode))

0 commit comments

Comments
 (0)