diff options
| -rw-r--r-- | fs/namei.c | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/fs/namei.c b/fs/namei.c index 4c5cbd5371a..a1593baec0b 100644 --- a/fs/namei.c +++ b/fs/namei.c | |||
| @@ -2989,8 +2989,6 @@ static int vfs_rename_dir(struct inode *old_dir, struct dentry *old_dentry, | |||
| 2989 | dont_mount(new_dentry); | 2989 | dont_mount(new_dentry); |
| 2990 | } | 2990 | } |
| 2991 | mutex_unlock(&target->i_mutex); | 2991 | mutex_unlock(&target->i_mutex); |
| 2992 | if (d_unhashed(new_dentry)) | ||
| 2993 | d_rehash(new_dentry); | ||
| 2994 | } | 2992 | } |
| 2995 | if (!error) | 2993 | if (!error) |
| 2996 | if (!(old_dir->i_sb->s_type->fs_flags & FS_RENAME_DOES_D_MOVE)) | 2994 | if (!(old_dir->i_sb->s_type->fs_flags & FS_RENAME_DOES_D_MOVE)) |
