'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@xxxxxxxxxx> --- 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);