Received: by 2002:ac0:a5a7:0:0:0:0:0 with SMTP id m36-v6csp61345imm; Tue, 31 Jul 2018 13:51:31 -0700 (PDT) X-Google-Smtp-Source: AAOMgpcHz9d9QiOkru+Jv6CzQnPCGafiuhMbMmbrTE3jH7cOF6ks83hGYzWFtpaYdeiXoc6MRCXd X-Received: by 2002:a65:4c87:: with SMTP id m7-v6mr21510462pgt.98.1533070291057; Tue, 31 Jul 2018 13:51:31 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1533070291; cv=none; d=google.com; s=arc-20160816; b=ovssX/bQkKgZ5uyPj5co3LxeYj+nTStSTZZPLUpxPovIHy8QEQSSxfqBDWUwf+efyW zh6MPymcT7CvApr/UaAKwmltoWMU+rxTo/CiCTHT57iJvmazF6I/ZMkkkFAxBWHqXHIC +SjdACrI4sWINy9W5E/B9y1Zy7zQILuTDAFBNWomnF4+XT97ozAgDdnuOn5P0NYQTAOE xJtK5FElj1XobLOW2wPjvUmjU5idDcXycYVoQ032mZHLF1x8Z2DrNGMSWINWfdUQbI8e MZg7cMUTjmJAG16+mHArU1eM6XORN1aF/0p7D9JOdyTQSDy6njztfJm1mlo76IWkwCyA BFXg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:arc-authentication-results; bh=DyJqw0MbnW7bnoItYJ7cc4XhtBLnvWYUWi60o67LZeA=; b=j3fyDzESn7STZvzlto88ygLNctUkWxRCIFzVE5rbDFR/cC01bfx02TVBR5sZ6eKM4R eUHNQ8PTZ32m94ZHrWlp95O3ZBYMwOOeIF1d51EhVIX/efPYLPkdP94Qa6E7WgTty0gG E8SgLKIE9OD3n1eXk+a8dVLHL4/IlyHHZ6Itq7WTCOOoKk8QoK4aXBKn0TxhvaeG3omZ dPOCWUX7bkOP3QlWbr7867UNqeYxsrpBH/OXhjIwW0r2DeFfLaOEg0mXtToUsoZVZb0g hCqb1ceuGg+IkQmw+0fOExGtw7+w47OrnkWsvDMjDGjGwfN6J6cv9Mawn1atfZuCgNs8 hA8w== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id s23-v6si13641313pga.563.2018.07.31.13.51.12; Tue, 31 Jul 2018 13:51:31 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1731306AbeGaWcO (ORCPT + 99 others); Tue, 31 Jul 2018 18:32:14 -0400 Received: from mail-wm0-f67.google.com ([74.125.82.67]:35917 "EHLO mail-wm0-f67.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727072AbeGaWcN (ORCPT ); Tue, 31 Jul 2018 18:32:13 -0400 Received: by mail-wm0-f67.google.com with SMTP id w24-v6so3108231wmc.1 for ; Tue, 31 Jul 2018 13:50:05 -0700 (PDT) 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:message-id:references :mime-version:content-disposition:in-reply-to:user-agent; bh=DyJqw0MbnW7bnoItYJ7cc4XhtBLnvWYUWi60o67LZeA=; b=PrD/jg35ZO/UV6YIaSmQKp2kaQVdbhKmkk9NVl5yNY4WmtmwgPkaYaZ6EbKQcirEIC CN8LJij8vnrp2eQ83YLcy78PFle/mwvTK4G1QPUNl+sxRjCQg3Bpclu/OcBwITN0AyUL ROH24X/m8Km90ZpsoIHiW/PrArzmJqxGJ97RrZ3HFcg+62a++zzy5FmhzvkHZph8k8Ms bc+kgu9tzGPeB9WniPJRshFnj/S8bsE9GJNYhPMus8oiT41no0zsfpAOmQBO8nTVzug+ YuEdUmtU7btB2z/+RX1rb1bwM54WTfed3c8a2LNM3nYU2FU4b5w7ryYRVKdWUXpj6lmD EkYw== X-Gm-Message-State: AOUpUlENnq06ijbsUIKWWM43GrSmeWa9O/y8Whz/chDP5Vc1IErIwTxl an/gbhDYEDoJE7aVdUnXhwKP+zz4LWg= X-Received: by 2002:a1c:4489:: with SMTP id r131-v6mr761403wma.128.1533070204671; Tue, 31 Jul 2018 13:50:04 -0700 (PDT) Received: from techadventures.net (techadventures.net. [62.201.165.239]) by smtp.gmail.com with ESMTPSA id l11-v6sm18988814wru.25.2018.07.31.13.50.03 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 31 Jul 2018 13:50:03 -0700 (PDT) Received: by techadventures.net (Postfix, from userid 1000) id 2C01312451A; Tue, 31 Jul 2018 22:50:03 +0200 (CEST) Date: Tue, 31 Jul 2018 22:50:03 +0200 From: Oscar Salvador To: Pavel Tatashin Cc: Andrew Morton , Michal Hocko , Vlastimil Babka , kirill.shutemov@linux.intel.com, iamjoonsoo.kim@lge.com, Mel Gorman , Souptick Joarder , Linux Memory Management List , LKML , osalvador@suse.de Subject: Re: [PATCH] mm: make __paginginit based on CONFIG_MEMORY_HOTPLUG Message-ID: <20180731205003.GA3277@techadventures.net> References: <20180731124504.27582-1-osalvador@techadventures.net> <20180731144157.GA1499@techadventures.net> <20180731144545.fh5syvwcecgvqul6@xakep.localdomain> <20180731145125.GB1499@techadventures.net> <20180731150115.GC1499@techadventures.net> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.23 (2014-03-12) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Jul 31, 2018 at 11:23:33AM -0400, Pavel Tatashin wrote: > Yes we free meminit when no CONFIG_MEMORY_HOTPLUG > See here: > http://src.illumos.org/source/xref/linux-master/include/asm-generic/vmlinux.lds.h#107 Oh, I got the point now. Somehow I missed that we were freeing up the memory when CONFIG_MEMORY_HOTPLUG was not in place. So your patch makes sense to me now, sorry. Since my patchset [1] + cleanup patch [2] remove almost all __paginginit, leaving only pgdat_init_internals() and zone_init_internals(), I think it would be great if you base your patch on top of that. Or since the patchset has some cleanups already, I could add your patch into it (as we did for the zone_to/set_nid() patch) and send a v6 with it. What do you think? [1] https://patchwork.kernel.org/patch/10548861/ [2] <20180731101752.GA473@techadventures.net> Thanks -- Oscar Salvador SUSE L3