Received: by 2002:a05:6902:102b:0:0:0:0 with SMTP id x11csp3067741ybt; Mon, 29 Jun 2020 14:26:09 -0700 (PDT) X-Google-Smtp-Source: ABdhPJx67JtR2uW9ezVsh6QEf+U+k4xVBowfv/qg6HjSu0MHSNyW9DVge01wR9ziSYoEOj2KMyf8 X-Received: by 2002:a17:906:dce:: with SMTP id p14mr15256195eji.442.1593465969519; Mon, 29 Jun 2020 14:26:09 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1593465969; cv=none; d=google.com; s=arc-20160816; b=bAnOu9FToAH57C3w5xspRe6bJuU9AmMSmzcsnnuM2kmVM2BZ5KC+siUv3SiuMQtBuQ ihW1p/wTONEt3UELGek4RgduYYeGd92DIqMsEYOT2p4c903hmiGXGq61uzWrG+V4W21j EiUEnTbMLpZLdYPh5RuD0XbMh7FJGlsMFrKSzlv3LPsLId4hvv+g1WWfIkBZzp4j4pAO zXAvS0OcXn8NWjkWqRIM7MtjCnw9e2TfgzhE2OnORAlRie2WWuCHmkij3hIR9BkuemvQ nP0pBbGh5fsKj3SXCTqtWi95pSXNwAo9rSOo8cKL7pE7kHNJjQzr4g9rknCoDmmz0ukr QC0Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:user-agent:references :message-id:in-reply-to:subject:cc:to:from:date:dkim-signature; bh=IvtcfFZZb6MrwnG6pfelExB/xyAxufFTua0HopUMxCU=; b=nt/Ml1R14KqqQGHAtv7g+GMJziXHN+5bAEKDdKUNyHICMPiv/aS5l6TJEXhmj9FpqY +4OON3co77pbfMdhuA/ZlGy15/hSG36LGlRj0KiVNEOpffK7Hdb7pGPVF8V4AfRlFEnb UIJW7niBUAdzuTXFjeJgRwvaTHM+2H6NwWsSMP54oPEP82/+I8Yoe7TZTN5YqP888wwH CuHxmGQQ7mZZ8eiBugDApbNb2GSvrORtrB51GdwnlfmPYuxOI/YUbJoNlgH4BF3rwYwt g2IUnmBCcuzFejpsYPmRhZw0sM3zq7igxVLY1kcl9lqjd1ci1tER7M4UdtCPwElhr7zQ OlpA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@google.com header.s=20161025 header.b="H/jEqMD1"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id 10si95529ejn.679.2020.06.29.14.25.46; Mon, 29 Jun 2020 14:26:09 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@google.com header.s=20161025 header.b="H/jEqMD1"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1730015AbgF2VYU (ORCPT + 99 others); Mon, 29 Jun 2020 17:24:20 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:39626 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729502AbgF2SuQ (ORCPT ); Mon, 29 Jun 2020 14:50:16 -0400 Received: from mail-pf1-x444.google.com (mail-pf1-x444.google.com [IPv6:2607:f8b0:4864:20::444]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id EE5DCC031C40 for ; Mon, 29 Jun 2020 11:50:16 -0700 (PDT) Received: by mail-pf1-x444.google.com with SMTP id x3so2747961pfo.9 for ; Mon, 29 Jun 2020 11:50:16 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20161025; h=date:from:to:cc:subject:in-reply-to:message-id:references :user-agent:mime-version; bh=IvtcfFZZb6MrwnG6pfelExB/xyAxufFTua0HopUMxCU=; b=H/jEqMD1SdPz6aA0pAK8ExCaF3JVkU35Md8uqDiJLGEEGf7E5Leit4kCJJ1irK9uIb Tzx6RKVhPjKznVV634fxBlhD9fMVYiRVb/MmZRnN9Qq5ikDNYxyzq0YNseNiceylR7tL KYLHl0LE6ur7y11jNaH7Ugj8sFCWRn9rw3XDdJkWG8mJcxCo5sWLxNL+NBMxJqEqaUwi X+X/M1/BWx0+c504Rm7O3KDFBHmrznaS9OK5h5UYz0C3uA0aJwmrlVLO7AODVCASBl3i QN6Raks5jplfCGtxAE++JPFO42hrsDclow1zfk89aWp55h09EMI+Qx8SZzMJ+w39iIkn Splg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:in-reply-to:message-id :references:user-agent:mime-version; bh=IvtcfFZZb6MrwnG6pfelExB/xyAxufFTua0HopUMxCU=; b=B1dL7z6CseH3QFtCM5PoymrN1WvE+/PR9x/BWSs5UB/ysduiO6WvQJLLEsbtX12jmc ynqnuczVIYUso1QgcZj+K3vRitwBtSoliNrEXb3eVZq+24m+/675G6UV/eC7yFM73DjC ha076JXsi+972uuHVNFLf4HJVobFCX0APTa8kNgjnbysZr22yGBNqzCiGqmaSertL23I do5XLQmz5jW8Ggbyg3wfJ75xmvHXpC5TfvlTlMZBNN2On5hKlcIQcNaMq1HpYw0LTexl F2Bl2T8P7VrofOIoQHz8Sfe2MlG0av9QwrJQKIje0PiwIyDHuqNEd+7iBztPIp/itSjT plNQ== X-Gm-Message-State: AOAM532WjAC/L2B3dT80OcRfGpR8B7vCE2J7FMWZ7nRCt55njwINkr/1 7AzV6RofrXpED5vsWjbSLePZbQ== X-Received: by 2002:a63:525a:: with SMTP id s26mr11270037pgl.155.1593456616190; Mon, 29 Jun 2020 11:50:16 -0700 (PDT) Received: from [2620:15c:17:3:3a5:23a7:5e32:4598] ([2620:15c:17:3:3a5:23a7:5e32:4598]) by smtp.gmail.com with ESMTPSA id x22sm406823pfr.11.2020.06.29.11.50.15 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 29 Jun 2020 11:50:15 -0700 (PDT) Date: Mon, 29 Jun 2020 11:50:15 -0700 (PDT) From: David Rientjes X-X-Sender: rientjes@chino.kir.corp.google.com To: Su Hui cc: akpm@linux-foundation.org, linux-kernel@vger.kernel.org, linux-mm@kvack.org Subject: Re: [PATCH] mm: remove the redundancy code In-Reply-To: <20200629173047.GA38128@ubuntu> Message-ID: References: <20200629173047.GA38128@ubuntu> User-Agent: Alpine 2.22 (DEB 394 2020-01-19) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, 30 Jun 2020, Su Hui wrote: > remove the redundancy code, the zone_start_pfn > is assigned from zone->zone_start_pfn > Signed-off-by: Su Hui I don't think this is redundant, it's used by memory hotplug when onlining new memory. > --- > mm/page_alloc.c | 2 -- > 1 file changed, 2 deletions(-) > > diff --git a/mm/page_alloc.c b/mm/page_alloc.c > index 3c4eb750a199..3372a8c9fbc4 100644 > --- a/mm/page_alloc.c > +++ b/mm/page_alloc.c > @@ -6215,8 +6215,6 @@ void __meminit init_currently_empty_zone(struct zone *zone, > if (zone_idx > pgdat->nr_zones) > pgdat->nr_zones = zone_idx; > > - zone->zone_start_pfn = zone_start_pfn; > - > mminit_dprintk(MMINIT_TRACE, "memmap_init", > "Initialising map node %d zone %lu pfns %lu -> %lu\n", > pgdat->node_id,