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>
This commit is contained in:
Trond Myklebust 2017-11-06 15:28:04 -05:00 committed by Anna Schumaker
parent 8fd1ab747d
commit d803224c84

View File

@ -2057,7 +2057,7 @@ out:
* should mark the directories for revalidation. * should mark the directories for revalidation.
*/ */
d_move(old_dentry, new_dentry); d_move(old_dentry, new_dentry);
nfs_set_verifier(new_dentry, nfs_set_verifier(old_dentry,
nfs_save_change_attribute(new_dir)); nfs_save_change_attribute(new_dir));
} else if (error == -ENOENT) } else if (error == -ENOENT)
nfs_dentry_handle_enoent(old_dentry); nfs_dentry_handle_enoent(old_dentry);