Linux-NFS Archive on
 help / color / 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 <>
 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 */

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

only message in thread, back to index

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

Linux-NFS Archive on

Archives are clonable:
	git clone --mirror linux-nfs/git/0.git

	# If you have public-inbox 1.1+ installed, you may
	# initialize and index your mirror using the following commands:
	public-inbox-init -V2 linux-nfs linux-nfs/ \
	public-inbox-index linux-nfs

Example config snippet for mirrors

Newsgroup available over NNTP:

AGPL code for this site: git clone