Message ID | 20220916072257.9639-10-linmiaohe@huawei.com (mailing list archive) |
---|---|
State | New |
Headers | show
Return-Path: <owner-linux-mm@kvack.org> X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from kanga.kvack.org (kanga.kvack.org [205.233.56.17]) by smtp.lore.kernel.org (Postfix) with ESMTP id 52E3CECAAD8 for <linux-mm@archiver.kernel.org>; Fri, 16 Sep 2022 07:24:05 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id A324880012; Fri, 16 Sep 2022 03:23:52 -0400 (EDT) Received: by kanga.kvack.org (Postfix, from userid 40) id 972CD80010; Fri, 16 Sep 2022 03:23:52 -0400 (EDT) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id 8344780012; Fri, 16 Sep 2022 03:23:52 -0400 (EDT) X-Delivered-To: linux-mm@kvack.org Received: from relay.hostedemail.com (smtprelay0011.hostedemail.com [216.40.44.11]) by kanga.kvack.org (Postfix) with ESMTP id 6D6D280010 for <linux-mm@kvack.org>; Fri, 16 Sep 2022 03:23:52 -0400 (EDT) Received: from smtpin15.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay05.hostedemail.com (Postfix) with ESMTP id 516EE40247 for <linux-mm@kvack.org>; Fri, 16 Sep 2022 07:23:52 +0000 (UTC) X-FDA: 79917109104.15.2C5A391 Received: from szxga03-in.huawei.com (szxga03-in.huawei.com [45.249.212.189]) by imf15.hostedemail.com (Postfix) with ESMTP id C01F0A00A6 for <linux-mm@kvack.org>; Fri, 16 Sep 2022 07:23:51 +0000 (UTC) Received: from canpemm500002.china.huawei.com (unknown [172.30.72.57]) by szxga03-in.huawei.com (SkyGuard) with ESMTP id 4MTQVR6z8RzBsQb; Fri, 16 Sep 2022 15:21:35 +0800 (CST) Received: from huawei.com (10.175.124.27) by canpemm500002.china.huawei.com (7.192.104.244) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2375.31; Fri, 16 Sep 2022 15:23:39 +0800 From: Miaohe Lin <linmiaohe@huawei.com> To: <akpm@linux-foundation.org>, <david@redhat.com>, <osalvador@suse.de>, <anshuman.khandual@arm.com> CC: <willy@infradead.org>, <linux-mm@kvack.org>, <linux-kernel@vger.kernel.org>, <linmiaohe@huawei.com> Subject: [PATCH v2 09/16] mm/page_alloc: use local variable zone_idx directly Date: Fri, 16 Sep 2022 15:22:50 +0800 Message-ID: <20220916072257.9639-10-linmiaohe@huawei.com> X-Mailer: git-send-email 2.23.0 In-Reply-To: <20220916072257.9639-1-linmiaohe@huawei.com> References: <20220916072257.9639-1-linmiaohe@huawei.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Content-Type: text/plain X-Originating-IP: [10.175.124.27] X-ClientProxiedBy: dggems705-chm.china.huawei.com (10.3.19.182) To canpemm500002.china.huawei.com (7.192.104.244) X-CFilter-Loop: Reflected ARC-Authentication-Results: i=1; imf15.hostedemail.com; dkim=none; spf=pass (imf15.hostedemail.com: domain of linmiaohe@huawei.com designates 45.249.212.189 as permitted sender) smtp.mailfrom=linmiaohe@huawei.com; dmarc=pass (policy=quarantine) header.from=huawei.com ARC-Seal: i=1; s=arc-20220608; d=hostedemail.com; t=1663313032; a=rsa-sha256; cv=none; b=7VBBvghQmQAHnZiSqtNHVhAFvrDr1jvBHmU8qkEQaTdMCgnmexgMbygebwOHLYcxEEqiwM p60bDLDtF0itcffwhUOexojOO/2tUfA70Wu8UVY333afLDU2owXujMmCQ3g0FVE5A26o7P CsCMRzh3ypMaOQ5j5havRU7KJE5s9aU= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=hostedemail.com; s=arc-20220608; t=1663313032; h=from:from:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=QBth5j6IuYHEhfYUErWRhFgbNxXlCBJDRrL6UhXfT+U=; b=Voy42xGy4g6P1rMFXuixnu/8rbzrfjVNr89sqq+JLMMZHfI970Eat5A/LYm2yb0baLdZtR AT1hhPrZJxs2bCbMzf8a1BRt84VbTYih6/mQMz+/BdbN1o5O8eqvrYWVShTQ6zZbrwipgW LTB/4N/z6h7dxUMkBTFcLvaRgt5FVpI= Authentication-Results: imf15.hostedemail.com; dkim=none; spf=pass (imf15.hostedemail.com: domain of linmiaohe@huawei.com designates 45.249.212.189 as permitted sender) smtp.mailfrom=linmiaohe@huawei.com; dmarc=pass (policy=quarantine) header.from=huawei.com X-Rspamd-Server: rspam05 X-Rspamd-Queue-Id: C01F0A00A6 X-Stat-Signature: nhdpkkq85bre57t5o5rz5c511tiqpc38 X-Rspam-User: X-HE-Tag: 1663313031-646740 X-Bogosity: Ham, tests=bogofilter, spamicity=0.000000, version=1.2.4 Sender: owner-linux-mm@kvack.org Precedence: bulk X-Loop: owner-majordomo@kvack.org List-ID: <linux-mm.kvack.org> |
Series |
A few cleanup patches for mm
|
expand
|
diff --git a/mm/page_alloc.c b/mm/page_alloc.c index 8fcc905ef317..83b2cb93d6fd 100644 --- a/mm/page_alloc.c +++ b/mm/page_alloc.c @@ -6873,7 +6873,7 @@ void __ref memmap_init_zone_device(struct zone *zone, unsigned long start = jiffies; int nid = pgdat->node_id; - if (WARN_ON_ONCE(!pgmap || zone_idx(zone) != ZONE_DEVICE)) + if (WARN_ON_ONCE(!pgmap || zone_idx != ZONE_DEVICE)) return; /*