Received: by 2002:a05:6359:c8b:b0:c7:702f:21d4 with SMTP id go11csp2237587rwb; Mon, 19 Sep 2022 01:46:00 -0700 (PDT) X-Google-Smtp-Source: AMsMyM7mHXteaPoXi91sJHXdaCX4Z/1AalDtw+MNylFBYhbjulO842hpI47lvI8TdvRqvCQbgj27 X-Received: by 2002:a17:907:94c7:b0:780:7ccd:aca7 with SMTP id dn7-20020a17090794c700b007807ccdaca7mr12073480ejc.136.1663577159736; Mon, 19 Sep 2022 01:45:59 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1663577159; cv=none; d=google.com; s=arc-20160816; b=DzoGubmyOROu/rWEZXjB1BadJGJf/LHVycrg/Zq8JZ8XlQ11Xo5iT1X2hwXSfCKNiu X31uq5xpTj16vvQf1UGSz45ROiMTSvwYiXxh/Dw61PUB+8U5477Oidwpfwqp2WzgXP6S 9bSIcqXh6JSVRuWqQUJBieKq4zmj3XB5m+8Qg1qqh04IpIfkMqYus1V2hwYeqXQ1cqEi 32keAsJK8RcA2ifnCxFxVtgaNrAa29bmS0tHfqUeDsQgbrezI8X2pRKcFZtIA9d76Qta suSvuiQqM6qNdhoWcftZwlJRGHRS2MbonrbUSoUrZOjje3ZrCZPB29Avc56eKoZZd/Tc YJeA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from; bh=th6bByAjZqEHkfSRhk7IRI6Mvhhm3F21lecBEhQSxYA=; b=0pqtcBnRKccfEubamDA2ZXnR7strLGr+shZl/YX3f/+7RWsP0C7xiBRfj4nLSGtmkG D3qFXNFtc8FhEkjLycTz6Zb4lXE/NYtmBy4w3gt56mZs/bYud8EcU3H8jw48bAeLD+WP CH5Ox7H4p/2a/4CJUJ1W63JszcCqx9/q3L052nEqWmZVtw9SIGEr7hNka0VWfNniIqQX MyY4Wn+sfx6lYHq43V4SYYeAr0inmeM0YdthIzudB1Xp+97wavMWCUhpZzYqkuGrF0ur gq79lDt8B5okYGDlvhI/5XAoEkD2zMKxEZcuTcr66T4AcchyST8tLuhxR7A++c/404fj mhaA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=huawei.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id y1-20020aa7ce81000000b0044f334e1e42si8091812edv.316.2022.09.19.01.45.34; Mon, 19 Sep 2022 01:45:59 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=huawei.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229976AbiISH6p (ORCPT + 99 others); Mon, 19 Sep 2022 03:58:45 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:35812 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229942AbiISH6M (ORCPT ); Mon, 19 Sep 2022 03:58:12 -0400 Received: from szxga01-in.huawei.com (szxga01-in.huawei.com [45.249.212.187]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id B813D1F2C0 for ; Mon, 19 Sep 2022 00:58:11 -0700 (PDT) Received: from dggpemm500020.china.huawei.com (unknown [172.30.72.56]) by szxga01-in.huawei.com (SkyGuard) with ESMTP id 4MWH4Y5f0RzlVwP; Mon, 19 Sep 2022 15:54:05 +0800 (CST) Received: from dggpemm100009.china.huawei.com (7.185.36.113) by dggpemm500020.china.huawei.com (7.185.36.49) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2375.31; Mon, 19 Sep 2022 15:58:10 +0800 Received: from huawei.com (10.175.113.32) by dggpemm100009.china.huawei.com (7.185.36.113) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2375.31; Mon, 19 Sep 2022 15:58:09 +0800 From: Liu Shixin To: Andrew Morton CC: , Liu Shixin , "Kefeng Wang" Subject: [PATCH 8/9] memory: replace IPC_CALLBACK_PRI with MM_BATCH_CALLBACK_PRI Date: Mon, 19 Sep 2022 16:31:51 +0800 Message-ID: <20220919083152.1824305-9-liushixin2@huawei.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20220919083152.1824305-1-liushixin2@huawei.com> References: <20220919083152.1824305-1-liushixin2@huawei.com> MIME-Version: 1.0 Content-Transfer-Encoding: 7BIT Content-Type: text/plain; charset=US-ASCII X-Originating-IP: [10.175.113.32] X-ClientProxiedBy: dggems703-chm.china.huawei.com (10.3.19.180) To dggpemm100009.china.huawei.com (7.185.36.113) X-CFilter-Loop: Reflected X-Spam-Status: No, score=-4.2 required=5.0 tests=BAYES_00,RCVD_IN_DNSWL_MED, SPF_HELO_NONE,SPF_PASS autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Since there is nothing to do with ipc, it is strange to use IPC_CALLBACK_PRI here. Replace IPC_CALLBACK_PRI with MM_BATCH_CALLBACK_PRI for easy reading. Signed-off-by: Liu Shixin --- include/linux/memory.h | 4 ++-- mm/mm_init.c | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/include/linux/memory.h b/include/linux/memory.h index 98d2a2ebcc10..e5f71d3d9af8 100644 --- a/include/linux/memory.h +++ b/include/linux/memory.h @@ -112,8 +112,8 @@ struct mem_section; * Priorities for the hotplug memory callback routines (stored in decreasing * order in the callback chain) */ -#define SLAB_CALLBACK_PRI 1 -#define IPC_CALLBACK_PRI 10 +#define SLAB_CALLBACK_PRI 1 +#define MM_BATCH_CALLBACK_PRI 10 #ifndef CONFIG_MEMORY_HOTPLUG static inline void memory_dev_init(void) diff --git a/mm/mm_init.c b/mm/mm_init.c index ec6989fcf762..30381cae9688 100644 --- a/mm/mm_init.c +++ b/mm/mm_init.c @@ -181,7 +181,7 @@ static int __meminit mm_compute_batch_notifier(struct notifier_block *self, static int __init mm_compute_batch_init(void) { mm_compute_batch(sysctl_overcommit_memory); - hotplug_memory_notifier(&mm_compute_batch_notifier, IPC_CALLBACK_PRI); + hotplug_memory_notifier(&mm_compute_batch_notifier, MM_BATCH_CALLBACK_PRI); return 0; } -- 2.25.1