Received: by 2002:a05:6a10:f347:0:0:0:0 with SMTP id d7csp5557124pxu; Tue, 22 Dec 2020 22:33:04 -0800 (PST) X-Google-Smtp-Source: ABdhPJw1XPkv3Ymhr69j/L39c5I/RLEzognsppL5kmGEq08V0HADAI2/oFHvHr9QUPRUlyGVE/or X-Received: by 2002:a17:906:76c9:: with SMTP id q9mr23057512ejn.484.1608705184535; Tue, 22 Dec 2020 22:33:04 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1608705184; cv=none; d=google.com; s=arc-20160816; b=Uoly21lEptt7Y/3StACyR0fEOmpCp/jWV/Wm4JLJmcro0xOcP4e7CV6fXZD6l/VbdN //nKkeUKz5tkP1MdWvthoC2Jf2YIqRA8ov7qPOt8/H5zTy0pY+bmjeJjnK1jck5O1t3o k76mBBXH92gOmfvcuX71r1W8WgrYvVo3DhkJ6sCcpVegpa5f8JHHxu1STTPuFeMDXR2g qinY+msggcX2zKdytz6BdfbN5UAwNTSxlIxMbJc2OUo1Z8qrbAVvig1Db0fxw2Y8+2Tt 0i7cmSEQyV3ABwSEu9g9JoI6+GlZiDHkvU4ThqIxoUBY7ZxPQU4ZmPskKyZwUCjHmbm+ xfWQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-disposition:mime-version:message-id :subject:cc:to:from:date:dkim-signature; bh=ir0Z7hf5gWb4v2SG15f0NYgChr3Crfln+YyC/91u4/k=; b=MwuqGbkpLbf5I+TxwaeYYReAIsFxiRFQx5E5cLzjlG9ddoGQK2XW5GZxbHJCi7RVQE eEE4WBhqpb6YL78Ldf3+bOLZ6GrGvInc0f1RsSXDDmZv+H4KLcFVi0Scxfb2o8lV6Uya MeEIY0jzetyFmBYC9T653ZlzCnYlrUlQJrYyRiGAL95HzFX+8YdFv46YFYjiXHyf8rbI l+v0oNJU4iZyLv1rNR0mhdpDNEIf0401xi/rPYuM/Eh0qjgIHZW5F9GheI27bpRPgfi/ w1bCaQ5AeG9PsalkOKBvkMoyg2PuB3OQxyX1k4eV5qn0nW+xcNaC8GS7g4JJTNcYD3+m fBNg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@163.com header.s=s110527 header.b=RKkctj+q; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=163.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id q4si12805423eji.447.2020.12.22.22.32.43; Tue, 22 Dec 2020 22:33:04 -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; dkim=pass header.i=@163.com header.s=s110527 header.b=RKkctj+q; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=163.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727141AbgLWGb4 (ORCPT + 99 others); Wed, 23 Dec 2020 01:31:56 -0500 Received: from m12-18.163.com ([220.181.12.18]:59838 "EHLO m12-18.163.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726282AbgLWGbz (ORCPT ); Wed, 23 Dec 2020 01:31:55 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=163.com; s=s110527; h=Date:From:Subject:Message-ID:MIME-Version; bh=ir0Z7 hf5gWb4v2SG15f0NYgChr3Crfln+YyC/91u4/k=; b=RKkctj+qvAtmz0sFpPV6A wFbz6VISLUly+pMJlpRkt2r4Fuh+3XlYQRjQ8RE5+w7to9gmkrEVuQQMcTOa4Q4z 8gD3zH4hHZGSfx/tshsid8WG04nXfQz1dat7Jf6ItBAhVEt6i7noptv2nUe4NnhX aGj9vjSh0TzyCSrCwq0TjA= Received: from localhost (unknown [101.86.213.121]) by smtp14 (Coremail) with SMTP id EsCowADHkBjq4+JfvFX1LA--.25218S2; Wed, 23 Dec 2020 14:30:02 +0800 (CST) Date: Wed, 23 Dec 2020 14:30:02 +0800 From: Hui Su To: linux-kernel@vger.kernel.org, viro@zeniv.linux.org.uk, linux-fsdevel@vger.kernel.org Cc: sh_def@163.com, songmuchun@bytedance.com Subject: [PATCH] mm/buffer.c: remove the macro check in check_irqs_on() Message-ID: <20201223063002.GA1526597@ubuntu-A520I-AC> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline X-CM-TRANSID: EsCowADHkBjq4+JfvFX1LA--.25218S2 X-Coremail-Antispam: 1Uf129KBjDUn29KB7ZKAUJUUUUU529EdanIXcx71UUUUU7v73 VFW2AGmfu7bjvjm3AaLaJ3UbIYCTnIWIevJa73UjIFyTuYvjxU0fHjUUUUU X-Originating-IP: [101.86.213.121] X-CM-SenderInfo: xvkbvvri6rljoofrz/1tbiIAoEX10TCqUscwADsM Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org The macro irqs_disabled is always defined in include/linux/irqflags.h, so we don't need the macro check. Signed-off-by: Hui Su --- fs/buffer.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/fs/buffer.c b/fs/buffer.c index 32647d2011df..34b505542d96 100644 --- a/fs/buffer.c +++ b/fs/buffer.c @@ -1247,9 +1247,7 @@ static DEFINE_PER_CPU(struct bh_lru, bh_lrus) = {{ NULL }}; static inline void check_irqs_on(void) { -#ifdef irqs_disabled BUG_ON(irqs_disabled()); -#endif } /* -- 2.25.1