From: Trond Myklebust Date: Mon, 6 Nov 2017 20:28:04 +0000 (-0500) Subject: NFS: Fix a typo in nfs_rename() X-Git-Tag: microblaze-4.16-rc1~127^2~25 X-Git-Url: http://git.monstr.eu/?a=commitdiff_plain;h=d803224c84be067754db7fa58a93f36f61566493;p=linux-2.6-microblaze.git 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 Signed-off-by: Anna Schumaker --- 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);