Skip to content

Commit 76f0b8d

Browse files
liewegasAl Viro
authored and
Al Viro
committed
bfs: remove unnecessary dentry_unhash on dir rename
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]>
1 parent 4b4563d commit 76f0b8d

File tree

1 file changed

+0
-3
lines changed

1 file changed

+0
-3
lines changed

fs/bfs/dir.c

-3
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)