Received: by 2002:a05:6902:102b:0:0:0:0 with SMTP id x11csp3032861ybt; Mon, 29 Jun 2020 13:26:36 -0700 (PDT) X-Google-Smtp-Source: ABdhPJx1ZHfeueEPQ+ZGwegUsH/z7A42w0F32WccHyXvDp8JRRmviUcbCN4DGsyyoWr77ySCdc5U X-Received: by 2002:aa7:d845:: with SMTP id f5mr19024639eds.162.1593462396279; Mon, 29 Jun 2020 13:26:36 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1593462396; cv=none; d=google.com; s=arc-20160816; b=BSrPEwZOCwMRIxNmdeEJddm8z0Aq12EsmJzYkfm4LjG0cv0k2LNm/LYXwgi3i3/jsD Rzu4MDkf5ZN6Wwe6KCvTEnrZbRLbj4v6mPPlH/0fqTLB2iDOIf/Hkvuw1AjvjAAdYcjV MzOG9dn7cviL1Wk3N9ZIeIbdiXloolmAHwZvDNsikJJiy/KWcdTS7FWRmVbbdU9Y/u/L az2Gsu8JpaQvXFkwBF0hfw2G4GhV7Gsd0Jv72H4IXb0fJBl8Tjd0jRIxIvF9ZSEk6ArP ERIyCBdUoc9GQ/6+7x82eDIzaa06MQ9fOqATq9SFZC1pLsY5MutYXkfAq7FHXQhY22jN XUvg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date :dkim-signature; bh=/tNEqX1OTggOnjAn9iyaOVC5qrkvv5bp1cnxrS5D0hQ=; b=YLEdJhiz5zzXzwNEjOUKG91wbF9PdE9WZ+t1wUD+usYNEjCyGiZOABPjTzOHX+aEAN C9Xt7VNPTiTVNoDygCQuEDCnfLW2zBqEk1o6bFnBu2IddSUaF3e2MAabG8p3wyLdsFXo eivOxvu+ZjNZiV4YBoR7Kwk90/welBKowJFmzI8ohtjmf6J1y8SVFFHBAEAAMlMZZx6W 54GXDGgTJwHt6v9hfYYANFXDg7gNeTW/9i24JGAzDs39Y4j6ZrA5Ut8KTla1uZQbVLRU wEPgBgRtcFqAkVG6j0FQHV1BHJPiIHYyVa58vczjBC2g60jGPcataPgqo/ke3ouXYyfa NWMw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=Ow0w90ZC; 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=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id b10si450931edj.94.2020.06.29.13.26.13; Mon, 29 Jun 2020 13:26:36 -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=@kernel.org header.s=default header.b=Ow0w90ZC; 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=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1732655AbgF2UYi (ORCPT + 99 others); Mon, 29 Jun 2020 16:24:38 -0400 Received: from mail.kernel.org ([198.145.29.99]:57984 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1732546AbgF2UYf (ORCPT ); Mon, 29 Jun 2020 16:24:35 -0400 Received: from kernel.org (unknown [87.71.40.38]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 744072067D; Mon, 29 Jun 2020 20:24:33 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1593462275; bh=wEIaLX71dfGicqQIWZky1iByqXvab7v8PvlHmX+vmWI=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=Ow0w90ZCmyfal+adkRjsIQpW7g7XWqTq/MOUKtMTpPj6QkRvuUBvney2UMWoRZg+P 9FT+ytQ5jYVsJE4wvynybaWOkXYN+Rvu2RcVkggJAcvQZwwdFVWX528Qco0/BAJx8z /ul5NvzHoiwFUAWCGITz6BO3KRpf7MJs5iB8TjoU= Date: Mon, 29 Jun 2020 23:24:29 +0300 From: Mike Rapoport To: David Rientjes Cc: Su Hui , akpm@linux-foundation.org, linux-kernel@vger.kernel.org, linux-mm@kvack.org Subject: Re: [PATCH] mm: remove the redundancy code Message-ID: <20200629202429.GG1492837@kernel.org> References: <20200629173047.GA38128@ubuntu> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, Jun 29, 2020 at 11:50:15AM -0700, David Rientjes wrote: > 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. Right, it is: $ git grep -wn init_currently_empty_zone mm/memory_hotplug.c mm/memory_hotplug.c:697: init_currently_empty_zone(zone, start_pfn, nr_pages); > > --- > > 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, > -- Sincerely yours, Mike.