From patchwork Mon Feb 3 15:58:45 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Yue Haibing X-Patchwork-Id: 11363069 Return-Path: Received: from mail.kernel.org (pdx-korg-mail-1.web.codeaurora.org [172.30.200.123]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 2438F138D for ; Mon, 3 Feb 2020 16:04:23 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 0BD1420721 for ; Mon, 3 Feb 2020 16:04:23 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728404AbgBCQEW (ORCPT ); Mon, 3 Feb 2020 11:04:22 -0500 Received: from szxga07-in.huawei.com ([45.249.212.35]:43912 "EHLO huawei.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1728389AbgBCQEW (ORCPT ); Mon, 3 Feb 2020 11:04:22 -0500 Received: from DGGEMS411-HUB.china.huawei.com (unknown [172.30.72.59]) by Forcepoint Email with ESMTP id 2956C9F6897AF4149922; Tue, 4 Feb 2020 00:04:19 +0800 (CST) Received: from localhost.localdomain.localdomain (10.175.113.25) by DGGEMS411-HUB.china.huawei.com (10.3.19.211) with Microsoft SMTP Server id 14.3.439.0; Tue, 4 Feb 2020 00:04:12 +0800 From: YueHaibing To: Trond Myklebust , Benjamin Coddington , Anna Schumaker CC: YueHaibing , , , Subject: [PATCH -next] NFS: use correct 'verifier' in nfs_lookup_revalidate_dentry Date: Mon, 3 Feb 2020 15:58:45 +0000 Message-ID: <20200203155845.50239-1-yuehaibing@huawei.com> X-Mailer: git-send-email 2.20.1 MIME-Version: 1.0 X-Originating-IP: [10.175.113.25] X-CFilter-Loop: Reflected Sender: linux-nfs-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-nfs@vger.kernel.org '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 */ nfs_force_use_readdirplus(dir);