[<prev] [next>] [day] [month] [year] [list]
Message-ID: <20200203155845.50239-1-yuehaibing@huawei.com>
Date: Mon, 3 Feb 2020 15:58:45 +0000
From: YueHaibing <yuehaibing@...wei.com>
To: Trond Myklebust <trond.myklebust@...merspace.com>,
Benjamin Coddington <bcodding@...hat.com>,
Anna Schumaker <anna.schumaker@...app.com>
CC: YueHaibing <yuehaibing@...wei.com>, <linux-nfs@...r.kernel.org>,
<linux-kernel@...r.kernel.org>, <kernel-janitors@...r.kernel.org>
Subject: [PATCH -next] NFS: use correct 'verifier' in nfs_lookup_revalidate_dentry
'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@...wei.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);
Powered by blists - more mailing lists