Received: by 2002:a05:6a10:22f:0:0:0:0 with SMTP id 15csp2004227pxk; Mon, 14 Sep 2020 02:03:25 -0700 (PDT) X-Google-Smtp-Source: ABdhPJx+/YBZvHQkff0uePDhKBHkP/IWpccRH59g9capO6Gj3E7mMLIXd6PVcV0ZHybZOEXGEQ7l X-Received: by 2002:a17:906:c18e:: with SMTP id g14mr14073002ejz.416.1600074204627; Mon, 14 Sep 2020 02:03:24 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1600074204; cv=none; d=google.com; s=arc-20160816; b=dwjuEgNXUygGSEnwRD4Dy0ZOKfx1Dlo8ptmY5o1Erb7PI6h4cU7GeVsZGuYhCEnM5P KYDBGRsXAFBZubUVvcBUlQToOuEYnS6JX6NnmxS+/ULm+AkbUyO7nU7uM5fak5j17mVa SfG0/wcBcBrHsx4xMbBuYkxiwmwWhXbpRJwqsrc4RkFnJN/VPhK5REojjdDY+puZSsNT 4gU7PzcEeGnSAolC1MmYzB5XMZqT99ohzOc62UNYrcAJ3IXiSKXrTgcDDS5Nu7hJ6R+1 TavHqGlLkrLZCj80KESBEQWDUGaLiZDZ1AjDY55SBjoZ6yOCgdV3E/x0c+GUwiiph/tn yr1Q== 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-transfer-encoding :content-disposition:mime-version:references:message-id:subject:cc :to:from:date; bh=RVQWFfpshGAkcC13pBORXdHyT9U1R5zRR1PrtrEI/hQ=; b=UNkyjzVyAydrFQKGtPBGuAVvYgjWZxokjDFcjYQsanwynmfdn216UnHIpsQdxIrc6+ KzoTUo9995wMIRUbc5Qgg3QNhfRLcj15ZH9YKjf4w9xRolurHVN1H2K+pJWTiWsrAi3k PJfsuf9wpVCDqx8QxwFaBixp0PnCnMFT2+HPGKNvwlJ0AqYDj6yiIFoCUaIXqlivS8CN FVl/7IV6AN3kPHD9dedT+nwI7M9syV4a8jQgy/bUODQZUGmfaT3pm3Leh+Ebvw1BdNd0 4oROoQWaK9hq66vn9OH+fqCBnaOMwVBpdjHtohdlYn3P4RuhBUh1T9ckMAh6ZvWVa2ag 7T4Q== ARC-Authentication-Results: i=1; mx.google.com; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id w16si6842403eds.210.2020.09.14.02.03.01; Mon, 14 Sep 2020 02:03:24 -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; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726233AbgINI75 (ORCPT + 99 others); Mon, 14 Sep 2020 04:59:57 -0400 Received: from mx2.suse.de ([195.135.220.15]:60302 "EHLO mx2.suse.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726112AbgINI7z (ORCPT ); Mon, 14 Sep 2020 04:59:55 -0400 X-Virus-Scanned: by amavisd-new at test-mx.suse.de Received: from relay2.suse.de (unknown [195.135.221.27]) by mx2.suse.de (Postfix) with ESMTP id 3C5D9AC46; Mon, 14 Sep 2020 09:00:09 +0000 (UTC) Date: Mon, 14 Sep 2020 10:59:53 +0200 From: Michal Hocko To: Laurent Dufour Cc: akpm@linux-foundation.org, David Hildenbrand , Oscar Salvador , Greg Kroah-Hartman , linux-mm@kvack.org, "Rafael J . Wysocki" , nathanl@linux.ibm.com, cheloha@linux.ibm.com, Tony Luck , Fenghua Yu , linux-ia64@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH 1/3] mm: replace memmap_context by memplug_context Message-ID: <20200914085953.GD16999@dhcp22.suse.cz> References: <20200911134831.53258-1-ldufour@linux.ibm.com> <20200911134831.53258-2-ldufour@linux.ibm.com> <20200914084904.GA16999@dhcp22.suse.cz> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon 14-09-20 10:51:06, Laurent Dufour wrote: > Le 14/09/2020 ? 10:49, Michal Hocko a ?crit?: [...] > > /* > > * Memory initialization context, use to differentiate memory added by > > * the platform statically or via memory hotplug interface. > > */ > > enum meminit_context { > > MEMINIT_EARLY, > > MEMINIT_HOTPLUG > > } > > > > Sounds good too. > What about its definition's place, in include/mm/zone.h as David suggested ? Yes. This shouldn't be in the hotplug proper. -- Michal Hocko SUSE Labs