Received: by 2002:a05:6a10:8c0a:0:0:0:0 with SMTP id go10csp1080463pxb; Fri, 26 Feb 2021 01:55:27 -0800 (PST) X-Google-Smtp-Source: ABdhPJzVBzi1OjuDAWLNEHOp1TbbFupt74/YAub27C5HczQimC6WQnNADzzmeXoRemX6hEyJp/i8 X-Received: by 2002:a17:906:309a:: with SMTP id 26mr2286427ejv.329.1614333327520; Fri, 26 Feb 2021 01:55:27 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1614333327; cv=none; d=google.com; s=arc-20160816; b=SCkl9iT71RZjh6TFVp00szk6+W41mrnBK0kEE4pfM9fboS19Am2I5XIRqm2FuJncwZ fesLbh0I1nxj54LHfHKWbO0ZmT8kxLtmczcKtrPSVmmZQ+nYgJtIeSLdM6zzHd+jXjjv o432Db3qZdYbcJPnfZ9Cj0v0mxzYi3aYaGTMsxVTJrK3WSHatgRljP5jdGRP/us6x8cj GvPdoSkpb0Y4C96HgqkeaaS1vhXDM0cCKzTepRM4zGfM4JJyKYRbKd+und1NAiASNemX bbRci6JHnDaJ2ezgr/9FJd0Q4nK72RluXKsAmRK1B3ZKLO949jYT/PDqAOYUEgY/q1po uHFA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:message-id:date:subject:cc:to:from; bh=1rE2HQBPt3K1OljXEgUHq8OCbd4/eYdq8BeumRhK9y8=; b=NJy1sFVQTMzg4YfYV6CrhR1LPiEX4mBZ7M5uLlTlocWeBXQlazQelVQwsszfPC7HgL tajwrX0s+G4QXA9Qn/zRzRWc/lvCBHWrwy2i5YiFdd8HEmDqOilCfsq67Tztww2q5jOi NznGatWbGztKLsW3e0HBcBiqDBt6wp2ruViAsOdWpYepxPWjJywHqTiUelPRkyVhc/ip wXh/9uJtSXXovhN0oUrdm+iSEq+V/sIb/74nyBqvj7ImrbDmS4k97i1cfU27h9sivPXm 9MNkNnSAT7XlOsBgFuYazdxfchPq/OYcqoUD8ggZ0pKqFYRSFVCgYn8qOvt7QJ4CLsRa bzYQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id v2si2799950ejg.251.2021.02.26.01.55.04; Fri, 26 Feb 2021 01:55:27 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230375AbhBZJwC (ORCPT + 99 others); Fri, 26 Feb 2021 04:52:02 -0500 Received: from smtp25.cstnet.cn ([159.226.251.25]:39298 "EHLO cstnet.cn" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S230464AbhBZJvP (ORCPT ); Fri, 26 Feb 2021 04:51:15 -0500 Received: from localhost.localdomain (unknown [124.16.141.241]) by APP-05 (Coremail) with SMTP id zQCowADHs0Q_xDhgUPO9AA--.22474S2; Fri, 26 Feb 2021 17:49:51 +0800 (CST) From: Xu Wang To: viro@zeniv.linux.org.uk, linux-fsdevel@vger.kernel.org Cc: linux-kernel@vger.kernel.org Subject: [PATCH] fs: Use WARN(1,...) Date: Fri, 26 Feb 2021 09:49:49 +0000 Message-Id: <20210226094949.49372-1-vulab@iscas.ac.cn> X-Mailer: git-send-email 2.17.1 X-CM-TRANSID: zQCowADHs0Q_xDhgUPO9AA--.22474S2 X-Coremail-Antispam: 1UD129KBjvdXoW7Wry8Gr1fZw4DJr45uw1fXrb_yoWxArX_GF 15JF4rW3yFqFyvyr4av3yjvFs3uryrCF4F9F4SkrW3Was5Jw13C3sYyr17X3s3Xr1xWF1x urZ7Jry8CwsI9jkaLaAFLSUrUUUUjb8apTn2vfkv8UJUUUU8Yxn0WfASr-VFAUDa7-sFnT 9fnUUIcSsGvfJTRUUUb7kYjsxI4VWkCwAYFVCjjxCrM7AC8VAFwI0_Jr0_Gr1l1xkIjI8I 6I8E6xAIw20EY4v20xvaj40_Wr0E3s1l1IIY67AEw4v_Jr0_Jr4l8cAvFVAK0II2c7xJM2 8CjxkF64kEwVA0rcxSw2x7M28EF7xvwVC0I7IYx2IY67AKxVW5JVW7JwA2z4x0Y4vE2Ix0 cI8IcVCY1x0267AKxVWxJVW8Jr1l84ACjcxK6I8E87Iv67AKxVWxJr0_GcWl84ACjcxK6I 8E87Iv6xkF7I0E14v26rxl6s0DM2AIxVAIcxkEcVAq07x20xvEncxIr21l5I8CrVACY4xI 64kE6c02F40Ex7xfMcIj6xIIjxv20xvE14v26r1Y6r17McIj6I8E87Iv67AKxVWUJVW8Jw Am72CE4IkC6x0Yz7v_Jr0_Gr1lF7xvr2IYc2Ij64vIr41lc2xSY4AK67AK6r4fMxAIw28I cxkI7VAKI48JMxC20s026xCaFVCjc4AY6r1j6r4UMI8I3I0E5I8CrVAFwI0_Jr0_Jr4lx2 IqxVCjr7xvwVAFwI0_JrI_JrWlx4CE17CEb7AF67AKxVWUXVWUAwCIc40Y0x0EwIxGrwCI 42IY6xIIjxv20xvE14v26r1j6r1xMIIF0xvE2Ix0cI8IcVCY1x0267AKxVWUJVW8JwCI42 IY6xAIw20EY4v20xvaj40_Gr0_Zr1lIxAIcVC2z280aVAFwI0_Jr0_Gr1lIxAIcVC2z280 aVCY1x0267AKxVWUJVW8JbIYCTnIWIevJa73UjIFyTuYvjxU4t8nUUUUU X-Originating-IP: [124.16.141.241] X-CM-SenderInfo: pyxotu46lvutnvoduhdfq/1tbiCwgEA1z4j2bOVgAAsR Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Use WARN(1,...) rather than printk followed by WARN_ON(1). Signed-off-by: Xu Wang --- fs/dcache.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/fs/dcache.c b/fs/dcache.c index 2cdfdcd4276b..1dad7069dfe5 100644 --- a/fs/dcache.c +++ b/fs/dcache.c @@ -1637,7 +1637,7 @@ static enum d_walk_ret umount_check(void *_data, struct dentry *dentry) if (dentry == _data && dentry->d_lockref.count == 1) return D_WALK_CONTINUE; - WARN(1, KERN_ERR "BUG: Dentry %p{i=%lx,n=%pd} " + WARN(1, "BUG: Dentry %p{i=%lx,n=%pd} " " still in use (%d) [unmount of %s %s]\n", dentry, dentry->d_inode ? -- 2.17.1