diff options
Diffstat (limited to 'fs/ext4/namei.c')
-rw-r--r-- | fs/ext4/namei.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/fs/ext4/namei.c b/fs/ext4/namei.c index 957580daad78..792d06e811c1 100644 --- a/fs/ext4/namei.c +++ b/fs/ext4/namei.c | |||
@@ -2352,6 +2352,9 @@ static int ext4_rename(struct inode *old_dir, struct dentry *old_dentry, | |||
2352 | struct ext4_dir_entry_2 *old_de, *new_de; | 2352 | struct ext4_dir_entry_2 *old_de, *new_de; |
2353 | int retval, force_da_alloc = 0; | 2353 | int retval, force_da_alloc = 0; |
2354 | 2354 | ||
2355 | if (new_dentry->d_inode && S_ISDIR(new_dentry->d_inode->i_mode)) | ||
2356 | dentry_unhash(new_dentry); | ||
2357 | |||
2355 | dquot_initialize(old_dir); | 2358 | dquot_initialize(old_dir); |
2356 | dquot_initialize(new_dir); | 2359 | dquot_initialize(new_dir); |
2357 | 2360 | ||