aboutsummaryrefslogtreecommitdiffstats
path: root/fs/hpfs
diff options
context:
space:
mode:
Diffstat (limited to 'fs/hpfs')
-rw-r--r--fs/hpfs/namei.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/fs/hpfs/namei.c b/fs/hpfs/namei.c
index b9fe158fd7ba..d3db95f51a4e 100644
--- a/fs/hpfs/namei.c
+++ b/fs/hpfs/namei.c
@@ -561,6 +561,10 @@ static int hpfs_rename(struct inode *old_dir, struct dentry *old_dentry,
561 struct buffer_head *bh; 561 struct buffer_head *bh;
562 struct fnode *fnode; 562 struct fnode *fnode;
563 int err; 563 int err;
564
565 if (new_inode && S_ISDIR(new_inode->i_mode))
566 dentry_unhash(new_dentry);
567
564 if ((err = hpfs_chk_name(new_name, &new_len))) return err; 568 if ((err = hpfs_chk_name(new_name, &new_len))) return err;
565 err = 0; 569 err = 0;
566 hpfs_adjust_length(old_name, &old_len); 570 hpfs_adjust_length(old_name, &old_len);