diff options
author | Trond Myklebust <trond.myklebust@primarydata.com> | 2017-11-06 15:28:04 -0500 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2017-12-16 10:32:30 +0100 |
commit | 7e8df53aae065a07007ca35350b5b9119239656a (patch) | |
tree | ba4c99e9e839f21fcfb9c52299d4bce12a1238d6 /fs/nfs/dir.c | |
parent | b9a72f359befb7536667baef659dfac6d06f791f (diff) | |
download | linux-stable-7e8df53aae065a07007ca35350b5b9119239656a.tar.gz linux-stable-7e8df53aae065a07007ca35350b5b9119239656a.tar.bz2 linux-stable-7e8df53aae065a07007ca35350b5b9119239656a.zip |
NFS: Fix a typo in nfs_rename()
[ Upstream commit d803224c84be067754db7fa58a93f36f61566493 ]
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>
Signed-off-by: Sasha Levin <alexander.levin@verizon.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'fs/nfs/dir.c')
-rw-r--r-- | fs/nfs/dir.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/nfs/dir.c b/fs/nfs/dir.c index 90526b2148f0..de98eb5be9db 100644 --- a/fs/nfs/dir.c +++ b/fs/nfs/dir.c @@ -2063,7 +2063,7 @@ out: if (new_inode != NULL) nfs_drop_nlink(new_inode); 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); |