summaryrefslogtreecommitdiff
path: root/fs/nfs
diff options
context:
space:
mode:
authorTrond Myklebust <trond.myklebust@primarydata.com>2017-11-06 15:28:04 -0500
committerAnna Schumaker <Anna.Schumaker@Netapp.com>2017-11-17 16:43:46 -0500
commitd803224c84be067754db7fa58a93f36f61566493 (patch)
treeb44df3a02472e4c2b8844a1aec60e8d23d3f53d0 /fs/nfs
parent8fd1ab747d2b1ec7ec663ad0b41a32eaa35117a8 (diff)
NFS: Fix a typo in nfs_rename()
On successful rename, the "old_dentry" is retained and is attached to the "new_dir", so we need to call nfs_set_verifier() accordingly. Signed-off-by: Trond Myklebust <trond.myklebust@primarydata.com> Signed-off-by: Anna Schumaker <Anna.Schumaker@Netapp.com>
Diffstat (limited to 'fs/nfs')
-rw-r--r--fs/nfs/dir.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/nfs/dir.c b/fs/nfs/dir.c
index a642ed3b13d9..927fd2768ead 100644
--- a/fs/nfs/dir.c
+++ b/fs/nfs/dir.c
@@ -2057,7 +2057,7 @@ out:
* should mark the directories for revalidation.
*/
d_move(old_dentry, new_dentry);
- nfs_set_verifier(new_dentry,
+ nfs_set_verifier(old_dentry,
nfs_save_change_attribute(new_dir));
} else if (error == -ENOENT)
nfs_dentry_handle_enoent(old_dentry);