Received: by 2002:a05:6358:9144:b0:117:f937:c515 with SMTP id r4csp6076841rwr; Tue, 9 May 2023 09:54:42 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ5um8AGRpOAR9yP4dvl2rqO6iUdkfAX/F+DQTCs7aCFjIQ+eHky4XFNAGZdmQaUJCobJFvh X-Received: by 2002:a17:902:c115:b0:1aa:d866:33cf with SMTP id 21-20020a170902c11500b001aad86633cfmr15021943pli.56.1683651282111; Tue, 09 May 2023 09:54:42 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1683651282; cv=none; d=google.com; s=arc-20160816; b=KR4kXQqZXfZ2c7A3od20Z765mpnJ6sFt7cNcXZ+7U2nT8qN/SvOfHxawcAahkkacXV t1bAyCkoNTxK/T72BBg110RD+GPy8lmv/Ot2rPNYSQqKBqT/Z8w6Cc5vm4JEBbPLZGug Wta4QwSsd0UKLv+rcy8OztPWcqxks1KjcfXNA9j8gcf/pZdzp7FOGBMirTsyO4lLKcDx qCgdW6FtuRSEaevgCT0HPktn2vv4Chni1DF98eqCORiKEabEzSJzkFxXYrQtfGvuFHlQ C8oLG3iYo0bi04mdAfUGc6QVgblspAdhVyxYn7caye3gvOY5zMRIt5c68IGKFe2mgMgz Ua+w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=9UmeWmtGgXwV1/Kshtgfyz6RKC7MB+adTITE1xS2g1Y=; b=k9rLiMP+57DUTPG0//pkv4T+HUcCihscUXMtIFGd0MCa4LTNO6D5/MjpanyqmyCwUf V7M4HrkAhy74t069Qfizqk0vwGmGoVsgfVWiSGMpRdtu0rgbFNAyk1VttcJEJOewrb2s XzUGeIW9NE9RW/285tWq8FXDGtjNnV8uIBOza8rWAqZVeyNFmaPmJ97lucmnwLjXjUzd Ly7qfVKNTbjCt/MkE/tBJsm3NzRzAtX8cs5SG6wKVgLpoQa1FkwYMd8BUeQUSkPDSKE6 CzKXfTW5TScyGb1ZODkA9DpnHbBB/m2FWExfccxT0XetokSlJlawwW/azJrZ0+CCY67f PslA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=OYFk8gZt; 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=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id c23-20020a170902849700b001a987c1bf5esi1793585plo.270.2023.05.09.09.54.29; Tue, 09 May 2023 09:54:42 -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; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=OYFk8gZt; 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=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233624AbjEIQjE (ORCPT + 99 others); Tue, 9 May 2023 12:39:04 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:53986 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230060AbjEIQjA (ORCPT ); Tue, 9 May 2023 12:39:00 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [IPv6:2604:1380:4641:c500::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 212E940CE; Tue, 9 May 2023 09:38:58 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id 9EB0E62906; Tue, 9 May 2023 16:38:57 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 8E537C433D2; Tue, 9 May 2023 16:38:56 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1683650336; bh=CNIoMSTpu9Fo0eEfWNQNIpTO1qX87mPTP8s97bQPs98=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=OYFk8gZtCaUB0GFVyA5nY2s6X6XAUcoBMqiiEPrWaxX20vmTkcN36Z9hNaCqa8e9F KFRlXdWA9a5Fqib0SKZEI8Va0aCzwr25HaZdj3HiFHP+hRK3GuoSRgOffpg1iY7UES yQMj/+ro7KyYSw4v0MqnRnKf07fEFz7qsVvVwGavLZqlc2DUMqqFCXzWdKW5SDgbNI U0M9PyPEpi3gGZppjIyijComU7HywJ/O52d+zYQbX/NMmeASZFdY13ZodyKNIiF5nK vAjsOkIGwDN6wXDgvSlvb4nn6NUp3T9H3teuWJUNV92VCEkQFHYGQGW033Fjxbdm7a SkEKmOv/I9HUw== Date: Tue, 9 May 2023 09:38:54 -0700 From: Mike Rapoport To: Kefeng Wang Cc: Andrew Morton , linux-mm@kvack.org, David Hildenbrand , Oscar Salvador , "Rafael J. Wysocki" , Pavel Machek , Len Brown , Luis Chamberlain , Kees Cook , Iurii Zaikin , linux-kernel@vger.kernel.org, linux-pm@vger.kernel.org, linux-fsdevel@vger.kernel.org Subject: Re: [PATCH 01/12] mm: page_alloc: move mirrored_kernelcore into mm_init.c Message-ID: <20230509163854.GB4135@kernel.org> References: <20230508071200.123962-1-wangkefeng.wang@huawei.com> <20230508071200.123962-2-wangkefeng.wang@huawei.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20230508071200.123962-2-wangkefeng.wang@huawei.com> X-Spam-Status: No, score=-4.4 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,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 On Mon, May 08, 2023 at 03:11:49PM +0800, Kefeng Wang wrote: > Since commit 9420f89db2dd ("mm: move most of core MM initialization > to mm/mm_init.c"), mirrored_kernelcore should be moved into mm_init.c, > as most related codes are already there. > > Signed-off-by: Kefeng Wang Reviewed-by: Mike Rapoport (IBM) > --- > mm/mm_init.c | 2 ++ > mm/page_alloc.c | 3 --- > 2 files changed, 2 insertions(+), 3 deletions(-) > > diff --git a/mm/mm_init.c b/mm/mm_init.c > index 7f7f9c677854..da162b7a044c 100644 > --- a/mm/mm_init.c > +++ b/mm/mm_init.c > @@ -259,6 +259,8 @@ static int __init cmdline_parse_core(char *p, unsigned long *core, > return 0; > } > > +bool mirrored_kernelcore __initdata_memblock; > + > /* > * kernelcore=size sets the amount of memory for use for allocations that > * cannot be reclaimed or migrated. > diff --git a/mm/page_alloc.c b/mm/page_alloc.c > index af9c995d3c1e..d1086aeca8f2 100644 > --- a/mm/page_alloc.c > +++ b/mm/page_alloc.c > @@ -23,7 +23,6 @@ > #include > #include > #include > -#include > #include > #include > #include > @@ -374,8 +373,6 @@ int user_min_free_kbytes = -1; > int watermark_boost_factor __read_mostly = 15000; > int watermark_scale_factor = 10; > > -bool mirrored_kernelcore __initdata_memblock; > - > /* movable_zone is the "real" zone pages in ZONE_MOVABLE are taken from */ > int movable_zone; > EXPORT_SYMBOL(movable_zone); > -- > 2.35.3 >