Received: by 2002:a05:6a10:1a4d:0:0:0:0 with SMTP id nk13csp1339894pxb; Tue, 8 Feb 2022 15:08:44 -0800 (PST) X-Google-Smtp-Source: ABdhPJzt/tDNjy9Rt+CbzgwwYKvVBQUTDbqzCK3Xuax05xy7fGAoV2nLJOshcukR+aN59z0IfeSt X-Received: by 2002:a17:906:608c:: with SMTP id t12mr5447071ejj.131.1644361723786; Tue, 08 Feb 2022 15:08:43 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1644361723; cv=none; d=google.com; s=arc-20160816; b=r+LmugqSC9wSUIKkqW6kzwAjN2B4EroruIbJRkSONFH+5jwl9kabPnjOU5mNaOtFkE qaiobd8MH/JJghWCn7kU4Tl2SKgelYtFARyFKdw43Z/BMiJBm1YHHjDAdQeR9TfP0H8d r3txlXpX42yuIf0QD1XLifA4yaCdpB5YrHpslhLQY1blGTMpJ0ZYZgRKXXtlBYmuvZ+v O5Doh6ZL8jZdzgBC2Z0mWpP/2/vKnxiu1r4szVerq2kqBpfy59f5CJenzAT5P6wM/fS+ 5OMVICrIEd4JKKTVQ+jE3EbuFXK4wcWPD+FDOACVp90K+YT8y2V/zSOuZBpabQ1iJcHF skjw== 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=WCyq7cLvlk0gFRX8cryk2QJIArk28T6uxGHSGExLXm0=; b=0eLe8pOKsLPG3TuML5648/M6OB20Xxm3aM2hlViYoBY3hrT3Y+Uaaq/7WJtImdrXWh luDFJcxJERCzaDON15eDwCdfZwcIQbWsGY+AZSw963QtOkpu/RihqQTPoJAK6BiaS9zi /jBqgSqiTmJ59RrNRPZ5Y8ka3V9wAMoYCyn5f0VgX8/A+2fh3OJeKriVIltgyLqj//2T mFMLcR8n7xYb2GWlA5WdXQwB4goCq6huf55FsW4T4n65auBwh1XQC1CkAYUz+/3L9vUh kucATFBk/rNbV/1mbjOX8dJL6NdGtRsW/f3y2HFulG7uY/GpTmXtL6HLgaJ7tyyq875o 4I/g== 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 gs31si6010626ejc.525.2022.02.08.15.08.17; Tue, 08 Feb 2022 15:08:43 -0800 (PST) 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 S1388762AbiBGNuW (ORCPT + 99 others); Mon, 7 Feb 2022 08:50:22 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:37224 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1387672AbiBGNiC (ORCPT ); Mon, 7 Feb 2022 08:38:02 -0500 Received: from szxga08-in.huawei.com (szxga08-in.huawei.com [45.249.212.255]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 88650C0401D5 for ; Mon, 7 Feb 2022 05:37:24 -0800 (PST) Received: from canpemm500002.china.huawei.com (unknown [172.30.72.54]) by szxga08-in.huawei.com (SkyGuard) with ESMTP id 4JsnCD1VTwz1FD17; Mon, 7 Feb 2022 21:33:12 +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.2308.21; Mon, 7 Feb 2022 21:37:22 +0800 From: Miaohe Lin To: CC: , , Subject: [PATCH 1/4] mm/memory_hotplug: remove obsolete comment of __add_pages Date: Mon, 7 Feb 2022 21:36:40 +0800 Message-ID: <20220207133643.23427-2-linmiaohe@huawei.com> X-Mailer: git-send-email 2.23.0 In-Reply-To: <20220207133643.23427-1-linmiaohe@huawei.com> References: <20220207133643.23427-1-linmiaohe@huawei.com> MIME-Version: 1.0 Content-Transfer-Encoding: 7BIT Content-Type: text/plain; charset=US-ASCII X-Originating-IP: [10.175.124.27] X-ClientProxiedBy: dggems702-chm.china.huawei.com (10.3.19.179) To canpemm500002.china.huawei.com (7.192.104.244) 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,T_SCC_BODY_TEXT_LINE 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 commit f1dd2cd13c4b ("mm, memory_hotplug: do not associate hotadded memory to zones until online"), there is no need to pass in the zone. Signed-off-by: Miaohe Lin --- mm/memory_hotplug.c | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/mm/memory_hotplug.c b/mm/memory_hotplug.c index a4f69d399929..cbc67c27e0dd 100644 --- a/mm/memory_hotplug.c +++ b/mm/memory_hotplug.c @@ -296,10 +296,7 @@ struct page *pfn_to_online_page(unsigned long pfn) EXPORT_SYMBOL_GPL(pfn_to_online_page); /* - * Reasonably generic function for adding memory. It is - * expected that archs that support memory hotplug will - * call this function after deciding the zone to which to - * add the new pages. + * Reasonably generic function for adding memory. */ int __ref __add_pages(int nid, unsigned long pfn, unsigned long nr_pages, struct mhp_params *params) -- 2.23.0