Received: by 2002:a05:6a10:22f:0:0:0:0 with SMTP id 15csp1999560pxk; Mon, 14 Sep 2020 01:52:22 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwagsIFmpCB9a5sY2IMfyRFoBe/IQ9FWmkSu5pecywx7zoKQKpZLSh9usnvnwr0pCHsEt39 X-Received: by 2002:aa7:cf93:: with SMTP id z19mr16499050edx.187.1600073542432; Mon, 14 Sep 2020 01:52:22 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1600073542; cv=none; d=google.com; s=arc-20160816; b=jEYstn2ENf8/+xHhi9YX7gVKxz1b0AjxT5yUv9CeiFJazGO+/mJZCymeA5yc/KCjqK cME7TiEo12prKAvPVcvYwWs5aIL5hQkbnNysMrXYGHKRruDtMFmznHBNQREc953FI+Ax dT4co7xK3Ef3ZS1QTQVN2DHJiujOcTSYVK7pYL0GAxIvbUJA+hha3Yg32RoOnPXqKsUq hvAyXt+HiGqO4x89pUXQzY1ZQVJOs2q/5b1rOxRoHIx13BriaVTx0unykiNBCXTgjW4U U9+MXDbLZGPc9h/0ut1BZMswFF5MMgHjcXMFj5T/eamx/6ZuBNVZDPNjY9c3P2vcVG3H XKJQ== 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; bh=eyVlhHpR5WWVlpU6aiCU+mJvtczzxtP8hyRjqkJjVE8=; b=pkS0Be4DXy14itPei6HFQiKq7B0S2eycomW0smGbfrsq1eBqWEKZYtGT4Y5YePQWqx mjHX/CCt+iOs0ZIJ+Fwdkhl1HFU//g2xiQHBs8qd3gUppNKhSZVq/+qflLJHvcWAIYW3 xKCd+7SrVvcErgSOgtfrNmuiqNCPlQ5D0T8rwaDraMax7JgNjvUXP9b3D+zLbilCFhHO 5pP8nPhRDZZL15Vu95nN5O4kFd8oC1R2jMDxcSsQd1x9HfquU9gV9vFf3uwMOMy0KiGG TagY92oY3gv3rEr0u2BZsKBMfK8jbdiIFaUS9QnjtkpYyaH2vci8FXIMnosJQ3gMNKxh WzVQ== 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 fx6si5998406ejb.432.2020.09.14.01.52.00; Mon, 14 Sep 2020 01:52:22 -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 S1726192AbgINItI (ORCPT + 99 others); Mon, 14 Sep 2020 04:49:08 -0400 Received: from mx2.suse.de ([195.135.220.15]:53396 "EHLO mx2.suse.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726128AbgINItG (ORCPT ); Mon, 14 Sep 2020 04:49:06 -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 E071BAC46; Mon, 14 Sep 2020 08:49:19 +0000 (UTC) Date: Mon, 14 Sep 2020 10:49:04 +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: <20200914084904.GA16999@dhcp22.suse.cz> References: <20200911134831.53258-1-ldufour@linux.ibm.com> <20200911134831.53258-2-ldufour@linux.ibm.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20200911134831.53258-2-ldufour@linux.ibm.com> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri 11-09-20 15:48:29, Laurent Dufour wrote: > The memmap_context is used to detect whether a memory operation is due to a > hot-add operation or happening at boot time. > > Makes it general to the hotplug operation, renaming it at memplug_context > and move its define in the corresponding header. > > There is no functional change introduced by this patch I do not want to nit picking on naming but we want to look at this from the initialization POV rather than hotplug. So.... > > Suggested-by: David Hildenbrand > Signed-off-by: Laurent Dufour [...] > diff --git a/include/linux/memory_hotplug.h b/include/linux/memory_hotplug.h > index 375515803cd8..cd2bd21d3a4d 100644 > --- a/include/linux/memory_hotplug.h > +++ b/include/linux/memory_hotplug.h > @@ -15,6 +15,15 @@ struct memory_block; > struct resource; > struct vmem_altmap; > > +/* > + * Memory plugin context, use to differentiate memory added at boot time and > + * hot-plugged memory. > + */ > +enum memplug_context { > + MEMPLUG_EARLY, > + MEMPLUG_HOTPLUG, > +}; /* * Memory initialization context, use to differentiate memory added by * the platform statically or via memory hotplug interface. */ enum meminit_context { MEMINIT_EARLY, MEMINIT_HOTPLUG } -- Michal Hocko SUSE Labs