diff options
Diffstat (limited to 'fs/nfs')
-rw-r--r-- | fs/nfs/dir.c | 3 | ||||
-rw-r--r-- | fs/nfs/super.c | 10 |
2 files changed, 6 insertions, 7 deletions
diff --git a/fs/nfs/dir.c b/fs/nfs/dir.c index 3419c2da9ba9..7432f1a43f3d 100644 --- a/fs/nfs/dir.c +++ b/fs/nfs/dir.c | |||
@@ -1669,8 +1669,7 @@ out: | |||
1669 | if (rehash) | 1669 | if (rehash) |
1670 | d_rehash(rehash); | 1670 | d_rehash(rehash); |
1671 | if (!error) { | 1671 | if (!error) { |
1672 | if (!S_ISDIR(old_inode->i_mode)) | 1672 | d_move(old_dentry, new_dentry); |
1673 | d_move(old_dentry, new_dentry); | ||
1674 | nfs_renew_times(new_dentry); | 1673 | nfs_renew_times(new_dentry); |
1675 | nfs_set_verifier(new_dentry, nfs_save_change_attribute(new_dir)); | 1674 | nfs_set_verifier(new_dentry, nfs_save_change_attribute(new_dir)); |
1676 | } | 1675 | } |
diff --git a/fs/nfs/super.c b/fs/nfs/super.c index b99113b0f65f..e8d40030cab4 100644 --- a/fs/nfs/super.c +++ b/fs/nfs/super.c | |||
@@ -71,7 +71,7 @@ static struct file_system_type nfs_fs_type = { | |||
71 | .name = "nfs", | 71 | .name = "nfs", |
72 | .get_sb = nfs_get_sb, | 72 | .get_sb = nfs_get_sb, |
73 | .kill_sb = nfs_kill_super, | 73 | .kill_sb = nfs_kill_super, |
74 | .fs_flags = FS_ODD_RENAME|FS_REVAL_DOT|FS_BINARY_MOUNTDATA, | 74 | .fs_flags = FS_RENAME_DOES_D_MOVE|FS_REVAL_DOT|FS_BINARY_MOUNTDATA, |
75 | }; | 75 | }; |
76 | 76 | ||
77 | struct file_system_type nfs_xdev_fs_type = { | 77 | struct file_system_type nfs_xdev_fs_type = { |
@@ -79,7 +79,7 @@ struct file_system_type nfs_xdev_fs_type = { | |||
79 | .name = "nfs", | 79 | .name = "nfs", |
80 | .get_sb = nfs_xdev_get_sb, | 80 | .get_sb = nfs_xdev_get_sb, |
81 | .kill_sb = nfs_kill_super, | 81 | .kill_sb = nfs_kill_super, |
82 | .fs_flags = FS_ODD_RENAME|FS_REVAL_DOT|FS_BINARY_MOUNTDATA, | 82 | .fs_flags = FS_RENAME_DOES_D_MOVE|FS_REVAL_DOT|FS_BINARY_MOUNTDATA, |
83 | }; | 83 | }; |
84 | 84 | ||
85 | static struct super_operations nfs_sops = { | 85 | static struct super_operations nfs_sops = { |
@@ -107,7 +107,7 @@ static struct file_system_type nfs4_fs_type = { | |||
107 | .name = "nfs4", | 107 | .name = "nfs4", |
108 | .get_sb = nfs4_get_sb, | 108 | .get_sb = nfs4_get_sb, |
109 | .kill_sb = nfs4_kill_super, | 109 | .kill_sb = nfs4_kill_super, |
110 | .fs_flags = FS_ODD_RENAME|FS_REVAL_DOT|FS_BINARY_MOUNTDATA, | 110 | .fs_flags = FS_RENAME_DOES_D_MOVE|FS_REVAL_DOT|FS_BINARY_MOUNTDATA, |
111 | }; | 111 | }; |
112 | 112 | ||
113 | struct file_system_type nfs4_xdev_fs_type = { | 113 | struct file_system_type nfs4_xdev_fs_type = { |
@@ -115,7 +115,7 @@ struct file_system_type nfs4_xdev_fs_type = { | |||
115 | .name = "nfs4", | 115 | .name = "nfs4", |
116 | .get_sb = nfs4_xdev_get_sb, | 116 | .get_sb = nfs4_xdev_get_sb, |
117 | .kill_sb = nfs4_kill_super, | 117 | .kill_sb = nfs4_kill_super, |
118 | .fs_flags = FS_ODD_RENAME|FS_REVAL_DOT|FS_BINARY_MOUNTDATA, | 118 | .fs_flags = FS_RENAME_DOES_D_MOVE|FS_REVAL_DOT|FS_BINARY_MOUNTDATA, |
119 | }; | 119 | }; |
120 | 120 | ||
121 | struct file_system_type nfs4_referral_fs_type = { | 121 | struct file_system_type nfs4_referral_fs_type = { |
@@ -123,7 +123,7 @@ struct file_system_type nfs4_referral_fs_type = { | |||
123 | .name = "nfs4", | 123 | .name = "nfs4", |
124 | .get_sb = nfs4_referral_get_sb, | 124 | .get_sb = nfs4_referral_get_sb, |
125 | .kill_sb = nfs4_kill_super, | 125 | .kill_sb = nfs4_kill_super, |
126 | .fs_flags = FS_ODD_RENAME|FS_REVAL_DOT|FS_BINARY_MOUNTDATA, | 126 | .fs_flags = FS_RENAME_DOES_D_MOVE|FS_REVAL_DOT|FS_BINARY_MOUNTDATA, |
127 | }; | 127 | }; |
128 | 128 | ||
129 | static struct super_operations nfs4_sops = { | 129 | static struct super_operations nfs4_sops = { |