Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp2120815rwd; Fri, 2 Jun 2023 05:17:13 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ7EATNh2s8MJayAtmfSYN7bO9CHIvQRK/1K3fg65Vay4+T63cwONl4WiP3YJwjqbysVG/pW X-Received: by 2002:a05:6358:2920:b0:125:83a6:caa0 with SMTP id y32-20020a056358292000b0012583a6caa0mr6377846rwb.25.1685708233681; Fri, 02 Jun 2023 05:17:13 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1685708233; cv=none; d=google.com; s=arc-20160816; b=fDRddYjVfE6uA2ejy8wgHLLlTotpzWaawWglvnbPCTBJ7CE8yiW6Ze7pCqJsQ1RMrZ rOyrB8AFzSfFvs9rWlwG7JgeyRe7xiFzE/N5lKrg9Xun2RYa5kck81XtVvjkLjdGA6+i 59IovgByoQ6SrPtCiD5Izd87UFn8ET2Wej8ABiLGYEJzEL83hfRIGlKJYTthkfI9pJcP JG5U4xUZdCPAxA1M9/LMLLIHl+AzIB3Dvvoueq8YrtMzMXGZG50H9KwIvQM6IhfEyCvI 52Obe34Q9k/YxbiExZvmSHP4gC34CpFwxUuj1t40N40McZHxcY0fQackYZDnE/KwZ2I1 ALHw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to :organization:from:references:cc:to:content-language:subject :user-agent:mime-version:date:message-id:dkim-signature; bh=c0e2kTAxpyGwta5efoRPZW8NlgUhggCRfdYJlDSsPPM=; b=zyekBqvRoUWXYnnmxORJRoKfZ9mMKAgNThSQsQFR3A/WcubDaZypVg6829RNUsB+yy OFvCegaXm9X7ALsaUsXPDw787mI09BTTXdVAnnZ1qIl0Eivbb97paMGttPUUv32IE91M Q6QfVvLxUnO0smqvuxGKJNCPfCJElIifHVk88wPlix0XSN1t7Hr4XPtEIGva/VnljP2M PfjI9YKrp8VNSvWZuf1WeKf+F3L5c1ff3QGF7328EI7VdX5pNI9AwYXgCLpr+3lJMpCG SjsEr8kGCOJzBDGxOGbTeW/mCAkJ92WQhUJ5fIO+T4heaXfNaZgOKKRjMU0q3hOY5F/e Ft+w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=D2NhS6Sj; 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=redhat.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id t37-20020a634465000000b0051b65f4d94asi905718pgk.484.2023.06.02.05.16.50; Fri, 02 Jun 2023 05:17:13 -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=@redhat.com header.s=mimecast20190719 header.b=D2NhS6Sj; 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=redhat.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S235452AbjFBLz2 (ORCPT + 99 others); Fri, 2 Jun 2023 07:55:28 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:42754 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235427AbjFBLz0 (ORCPT ); Fri, 2 Jun 2023 07:55:26 -0400 Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.129.124]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id A57FD10E4 for ; Fri, 2 Jun 2023 04:54:08 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1685706774; h=from:from: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=c0e2kTAxpyGwta5efoRPZW8NlgUhggCRfdYJlDSsPPM=; b=D2NhS6SjxNoEba4Lony02Z+5hiptapoPbw0xvqlZZs2ldX3BWO/jIuVp8lzCed7duj9dJo gAsbc2HiYOSkE4vg0haf56iEuApHLKbYBiRiYH0HlKbhMa8JPS0wJ7jtHfOPyMuCMrse5Q bNt1ZSa+efGaBzvNceN6ldWTi/cokSM= Received: from mail-lf1-f69.google.com (mail-lf1-f69.google.com [209.85.167.69]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_256_GCM_SHA384) id us-mta-418-1uaGn3RFNZ-GBcQvtPfXLw-1; Fri, 02 Jun 2023 07:49:36 -0400 X-MC-Unique: 1uaGn3RFNZ-GBcQvtPfXLw-1 Received: by mail-lf1-f69.google.com with SMTP id 2adb3069b0e04-4ec790b902bso1468178e87.1 for ; Fri, 02 Jun 2023 04:49:36 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1685706575; x=1688298575; h=content-transfer-encoding:in-reply-to:organization:from:references :cc:to:content-language:subject:user-agent:mime-version:date :message-id:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=c0e2kTAxpyGwta5efoRPZW8NlgUhggCRfdYJlDSsPPM=; b=fvDQp5w/v+KlSmuwETHWMWG2eVJdsZFdyZFLc+tft6IohSzmJfJBYFSmoube7DlJmr kIusTu88MqABVoSiPLS1OI3XGp6Q7dzxsBj0gpbbLAaay1Sf+XrUASzo/Od208Mkbb7v zCRNFIuFPVNTTEANCwn4q8ECkNCVM38DQBk8nym/nTepmf4FFfUstVL/jbdIotSOHkCX fTynhodOGil1nuU0llrmfvZClx4fc5JZpq10C55RjFN2tKa7id+XCrrUII2Nv36afQ0t 0AfhayYk097qfT+3jo2AO7V3ByslW1J0lUVSFWbEAfoderUaLEQ3wOGuYdSQSGy0vwPq PG6g== X-Gm-Message-State: AC+VfDyJRZ/4Yp182WWqLZBrBYUelYB0I5y8qN5Lx8NJAefljRTqZZJL SCesXYBON/kFgCBO6HVB8dy9f4W8PcM5Qp/HQJ+b9aRtf6Cp52Aj4D9fVpTU+1dQh1CaTZID5qD 1B5iGT1xiQsD5OeAsl8U2Sp+Pa/tB6rJH X-Received: by 2002:a19:7604:0:b0:4f4:b0a1:9956 with SMTP id c4-20020a197604000000b004f4b0a19956mr1694574lff.7.1685706575032; Fri, 02 Jun 2023 04:49:35 -0700 (PDT) X-Received: by 2002:a19:7604:0:b0:4f4:b0a1:9956 with SMTP id c4-20020a197604000000b004f4b0a19956mr1694564lff.7.1685706574694; Fri, 02 Jun 2023 04:49:34 -0700 (PDT) Received: from ?IPV6:2003:d8:2f2e:ae00:f2e3:50e0:73f7:451? (p200300d82f2eae00f2e350e073f70451.dip0.t-ipconnect.de. [2003:d8:2f2e:ae00:f2e3:50e0:73f7:451]) by smtp.gmail.com with ESMTPSA id v6-20020a5d6786000000b003078cd719ffsm1468096wru.95.2023.06.02.04.49.33 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Fri, 02 Jun 2023 04:49:34 -0700 (PDT) Message-ID: Date: Fri, 2 Jun 2023 13:49:33 +0200 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.10.0 Subject: Re: [PATCH 1/2] mm/memory_hotplug: remove reset_node_managed_pages() in hotadd_init_pgdat() Content-Language: en-US To: Haifeng Xu Cc: osalvador@suse.de, rppt@kernel.org, mhocko@kernel.org, akpm@linux-foundation.org, linux-mm@kvack.org, linux-kernel@vger.kernel.org References: <20230601162626.1030-1-haifeng.xu@shopee.com> From: David Hildenbrand Organization: Red Hat In-Reply-To: <20230601162626.1030-1-haifeng.xu@shopee.com> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-2.4 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,NICE_REPLY_A, RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_NONE,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 01.06.23 18:26, Haifeng Xu wrote: > managed pages has already been set to 0 in free_area_init_core_hotplug(), "via zone_init_internals() on each zone" > so it's pointless to reset again. > > Signed-off-by: Haifeng Xu > --- > mm/memory_hotplug.c | 1 - > 1 file changed, 1 deletion(-) > > diff --git a/mm/memory_hotplug.c b/mm/memory_hotplug.c > index 8e0fa209d533..65e385f34679 100644 > --- a/mm/memory_hotplug.c > +++ b/mm/memory_hotplug.c > @@ -1210,7 +1210,6 @@ static pg_data_t __ref *hotadd_init_pgdat(int nid) > * online_pages() and offline_pages(). > * TODO: should be in free_area_init_core_hotplug? > */ > - reset_node_managed_pages(pgdat); > reset_node_present_pages(pgdat); > > return pgdat; With that, reset_node_managed_pages() no longer needs to be exposed outside of mm/memblock.c Can you unexport that function as well? -- Thanks, David / dhildenb