Received: by 2002:a25:8b91:0:0:0:0:0 with SMTP id j17csp1560027ybl; Wed, 18 Dec 2019 22:08:06 -0800 (PST) X-Google-Smtp-Source: APXvYqxsI7br9dMCUz3/FnenSrQJqzWwdPkuyecOOX0WhNaUrg/1E3QvgjnAng56o9dMQC4xA7yk X-Received: by 2002:a05:6830:11c3:: with SMTP id v3mr7372759otq.74.1576735686150; Wed, 18 Dec 2019 22:08:06 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1576735686; cv=none; d=google.com; s=arc-20160816; b=o2o7SO2hqbFo68lb4uFMn+q4nP359HoJF6aRSzfumxuhVPICOpkBRBLfSab15asT6G C3Lsz8lVF0QKiaSfNfgbjjgiSvbNL8+OXB/3ErI61byBueHQP6APjyuFFLusHrjtUSHw WAzIhcVdx2csyg7dvGbbk9p2+f3EL8XaEHfewe0FLWYfkh9h0SMozyQ9u896R4TZaaqK ofExH5IgLw1wxP5lDqclbo8+PSvRGqeKHjNPPQs5kwWNRzOD9ZLeM2YitRa4R9rpRYis hfyhnNXnoED/kQQ3LNsGLjB6ujUYgXjNbWET+lk+a9XzT12OxinyBYhHl8pLHRNhFqLR iOWQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:message-id:date:subject:cc :to:from; bh=oSHwCz28EjE/wQ901HBZ3mLBWwBftdC3EyOLPi2+2dc=; b=kz81dhq9QWJh/h2JSgiR/qmYvXqUrbdXZHw/Q1Wr4Nx4iop2kgH8Cz4J5rzbIN8KPk YGrXzl73nrOYH20iqcOHGJEXRjcD8Hpc2ZQA5q4CyLH74oq1LCHQAA0YUXT/ztUtQBSe 92OOKBVlkppNoxc2wuIWyL3BwPWEvz7uYz55fW/tNiRMO0EPJ4EiXmRlSjNJFTqs9GlZ lDoJqOApyBeSI7qAGUm407tjbbjHafIHt5nbDemmSMJkZKtrVl2pY8Q7bf9zHPKSUq2O pu2M+5A1FQQar2OWGkJiooDU2F+8CsU4jy9UmhBul1G+AU1TkgnqiCCYV8O9irt8Km6H PMoQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-nfs-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-nfs-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id n18si433397otf.285.2019.12.18.22.07.43; Wed, 18 Dec 2019 22:08:06 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-nfs-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-nfs-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-nfs-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1725987AbfLSGHH (ORCPT + 99 others); Thu, 19 Dec 2019 01:07:07 -0500 Received: from szxga07-in.huawei.com ([45.249.212.35]:33392 "EHLO huawei.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1725821AbfLSGHH (ORCPT ); Thu, 19 Dec 2019 01:07:07 -0500 Received: from DGGEMS405-HUB.china.huawei.com (unknown [172.30.72.58]) by Forcepoint Email with ESMTP id A0B9E1542B337B0C6FF0; Thu, 19 Dec 2019 14:07:04 +0800 (CST) Received: from huawei.com (10.90.53.225) by DGGEMS405-HUB.china.huawei.com (10.3.19.205) with Microsoft SMTP Server id 14.3.439.0; Thu, 19 Dec 2019 14:06:57 +0800 From: zhengbin To: , , CC: Subject: [PATCH] NFS: move dprintk after nfs_alloc_fattr in nfs3_proc_lookup Date: Thu, 19 Dec 2019 14:14:18 +0800 Message-ID: <1576736058-111247-1-git-send-email-zhengbin13@huawei.com> X-Mailer: git-send-email 2.7.4 MIME-Version: 1.0 Content-Type: text/plain X-Originating-IP: [10.90.53.225] X-CFilter-Loop: Reflected Sender: linux-nfs-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-nfs@vger.kernel.org In nfs3_proc_lookup, if nfs_alloc_fattr fails, will only print "NFS call lookup". This may be confusing, move dprintk after nfs_alloc_fattr. Reported-by: Hulk Robot Signed-off-by: zhengbin --- fs/nfs/nfs3proc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/fs/nfs/nfs3proc.c b/fs/nfs/nfs3proc.c index 9eb2f1a..0703c05 100644 --- a/fs/nfs/nfs3proc.c +++ b/fs/nfs/nfs3proc.c @@ -169,11 +169,11 @@ nfs3_proc_lookup(struct inode *dir, const struct qstr *name, }; int status; - dprintk("NFS call lookup %s\n", name->name); res.dir_attr = nfs_alloc_fattr(); if (res.dir_attr == NULL) return -ENOMEM; + dprintk("NFS call lookup %s\n", name->name); nfs_fattr_init(fattr); status = rpc_call_sync(NFS_CLIENT(dir), &msg, 0); nfs_refresh_inode(dir, res.dir_attr); -- 2.7.4