linux-nfs.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH -next] NFS: use correct 'verifier' in nfs_lookup_revalidate_dentry
@ 2020-02-03 15:58 YueHaibing
  0 siblings, 0 replies; only message in thread
From: YueHaibing @ 2020-02-03 15:58 UTC (permalink / raw)
  To: Trond Myklebust, Benjamin Coddington, Anna Schumaker
  Cc: YueHaibing, linux-nfs, linux-kernel, kernel-janitors

'verifier' is already set but not used in nfs_set_verifier().

Fixes: 1346d280eafa ("NFS: Revalidate once when holding a delegation")
Signed-off-by: YueHaibing <yuehaibing@huawei.com>
---
 fs/nfs/dir.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/fs/nfs/dir.c b/fs/nfs/dir.c
index 289052c0ae93..882ea5337627 100644
--- a/fs/nfs/dir.c
+++ b/fs/nfs/dir.c
@@ -1180,7 +1180,7 @@ nfs_lookup_revalidate_dentry(struct inode *dir, struct dentry *dentry,
 		verifier = nfs_save_change_attribute(dir);
 
 	nfs_setsecurity(inode, fattr, label);
-	nfs_set_verifier(dentry, nfs_save_change_attribute(dir));
+	nfs_set_verifier(dentry, verifier);
 
 	/* set a readdirplus hint that we had a cache miss */
 	nfs_force_use_readdirplus(dir);




^ permalink raw reply related	[flat|nested] only message in thread

only message in thread, other threads:[~2020-02-03 16:04 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-02-03 15:58 [PATCH -next] NFS: use correct 'verifier' in nfs_lookup_revalidate_dentry YueHaibing

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).