Received: by 2002:a05:6a10:8c0a:0:0:0:0 with SMTP id go10csp1233995pxb; Thu, 4 Mar 2021 06:44:24 -0800 (PST) X-Google-Smtp-Source: ABdhPJwwGC2nqWvCmG8B3FVJwVGmSIsAp0HoQqc//16kXy58Byadm8SB6y5RfFCOqC0xB2pSHQRU X-Received: by 2002:a17:906:b316:: with SMTP id n22mr4391986ejz.249.1614869064618; Thu, 04 Mar 2021 06:44:24 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1614869064; cv=none; d=google.com; s=arc-20160816; b=w+jUCCO6RWhTvZuE9p/3GDEMrXkWL7CBLoRcw21OXcG8l7lG7F1lspB+/Wry1U/wE1 wTzNla4DWP6n1DiFkDi1OWYbV52Hp8HROoCC3C3vaNxBT4R9AIqQzrusVHFIj3D7xXOk sT1vpxXfnU/NQzXMG+LXLJ5Y3kXNPrkO7IN0/FKB3EOjVYfN+7r7pujlcVe/BkVm4YKB KgPVUJB5+f1XI2I90H1JBCcnqTI/DcNyg8Yw+zty0rNaPLVt/ppqwr1yPw1y6pNLYW84 hXNwzDCaPo6LAs4mHaAkbBxmJw5GEZG2JGkYtWZZtzFmd1uIbKmiZgjqh9Sn+1VLueGJ 2nUQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=saz39NphErLN6qEzH04XuHlAVGZp77aIU1VH6z80Tzk=; b=CYIh76k/G3T5Rsj3rKuKcKU7iC4KwrWEJ37i/Nj5Y6Q/XKd13vxcCI7JIRzxbCdOZZ nf021EIsBsZdb4F2xMe7ARx6DUcsVfRNiwQI0N1v1GgBW9N309ggNfemTab4h23K+TpZ h/XtOgHQATZnu67XMINtaONZRlFNrUb1Q9grWNtx7JH62muvqfdP58u3xeGEJ0807Ole elxQ9EBFGlfjAquEE5/PPyCU+D9BHnaeMFZiVSdb8/kzkHOPKZ6dYlA/jl9czUUz4upf /ob04nu6SAjYzMuHKTI0Na/LcI1aHVspwaNQQM5rhdB5/t7tw0DmBHbQwGbTb7yl8WHP jsgA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=Z4iudz7P; 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=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id wn9si5826229ejb.491.2021.03.04.06.44.01; Thu, 04 Mar 2021 06:44:24 -0800 (PST) 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=@gmail.com header.s=20161025 header.b=Z4iudz7P; 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=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233455AbhCDE1U (ORCPT + 99 others); Wed, 3 Mar 2021 23:27:20 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:45816 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233451AbhCDE1C (ORCPT ); Wed, 3 Mar 2021 23:27:02 -0500 Received: from mail-pj1-x1030.google.com (mail-pj1-x1030.google.com [IPv6:2607:f8b0:4864:20::1030]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 43075C061574; Wed, 3 Mar 2021 20:26:22 -0800 (PST) Received: by mail-pj1-x1030.google.com with SMTP id e9so5981600pjj.0; Wed, 03 Mar 2021 20:26:22 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to; bh=saz39NphErLN6qEzH04XuHlAVGZp77aIU1VH6z80Tzk=; b=Z4iudz7Pmo3VFvkA3EmxhLycHE8GJcTuKp6QcrMJPTdtjFOdsUusPNdSsAF0WJ7tgk ZtQwYExcL5TEeIjJjvLqJO4L1DTyfT7+T5ZVt/TpJKNeLjE07hLlERg9da//BPEoZDME WIIOt9yZ4lmMJfm4gMm11gwdEu2WiCsBioo1cbf4OM0rfyhltVSgsJUO3kaMYfnAzTyd KnRRQ5wsWE81nLOf/MysScoy4RQB6uCjWkjpxnxrk6G7WgfsCkK3XZ7WPctUmAs1BDhd +Z+deMeTyBz+R9xT7kbdDG1Sy+CDnNL9o2mySctfM82CBLg9Rp0Boak1vy09t1yUWoa+ loTA== 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; bh=saz39NphErLN6qEzH04XuHlAVGZp77aIU1VH6z80Tzk=; b=gYHnJw1g2fCWxRMA748lzmlpL5gHLmP4wYwNvazif+tFRUr6TiWLdcxRnqOAYhMIJB NomeRBKccGAitaIdDIQnEfwDVbnIq0ihAhyn+yTaplxG0bH8udrkF6CRAzVLQy5CKujC 3tQmmHU5F1P/nvaW51jrvG5I73xCUBZcxgngeMTT9v8gRKRvnuofxQWuulfxBkwNbYVe fF/HOlcK70oeDgVz68Yjz7BDm2mTlDWECoX1T+jYSCWwLYrh4Fymhc8JHfAWD9B+2755 PBLlIoDCmQneXUgNdgJzhSa3LBMjIhZVrGa0EKC4qin8EQrje8HjKU23eKiCosMGp6sV H2eQ== X-Gm-Message-State: AOAM5335U2NBy/VuznXcewyR/keH7C2Zxj7sxJwKFaipVx8IlVYqzOiX fcwNgOh21jahJOwE0ml5pVE= X-Received: by 2002:a17:90a:7f84:: with SMTP id m4mr2467688pjl.76.1614831981749; Wed, 03 Mar 2021 20:26:21 -0800 (PST) Received: from localhost (121-45-173-48.tpgi.com.au. [121.45.173.48]) by smtp.gmail.com with ESMTPSA id u66sm28533366pfc.72.2021.03.03.20.26.20 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 03 Mar 2021 20:26:20 -0800 (PST) Date: Thu, 4 Mar 2021 15:26:17 +1100 From: Balbir Singh To: Muchun Song , corbet@lwn.net, mike.kravetz@oracle.com, tglx@linutronix.de, mingo@redhat.com, bp@alien8.de, x86@kernel.org, hpa@zytor.com, dave.hansen@linux.intel.com, luto@kernel.org, peterz@infradead.org, viro@zeniv.linux.org.uk, akpm@linux-foundation.org, paulmck@kernel.org, mchehab+huawei@kernel.org, pawan.kumar.gupta@linux.intel.com, rdunlap@infradead.org, oneukum@suse.com, anshuman.khandual@arm.com, jroedel@suse.de, almasrymina@google.com, rientjes@google.com, willy@infradead.org, osalvador@suse.de, mhocko@suse.com, song.bao.hua@hisilicon.com, david@redhat.com, naoya.horiguchi@nec.com, joao.m.martins@oracle.com Cc: duanxiongchun@bytedance.com, linux-doc@vger.kernel.org, linux-kernel@vger.kernel.org, linux-mm@kvack.org, linux-fsdevel@vger.kernel.org, Miaohe Lin Subject: Re: [PATCH v17 1/9] mm: memory_hotplug: factor out bootmem core functions to bootmem_info.c Message-ID: <20210304042617.GB1223287@balbir-desktop> References: <20210225132130.26451-1-songmuchun@bytedance.com> <20210225132130.26451-2-songmuchun@bytedance.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Mar 03, 2021 at 01:45:00PM +1100, Singh, Balbir wrote: > On 26/2/21 12:21 am, Muchun Song wrote: > > Move bootmem info registration common API to individual bootmem_info.c. > > And we will use {get,put}_page_bootmem() to initialize the page for the > > vmemmap pages or free the vmemmap pages to buddy in the later patch. > > So move them out of CONFIG_MEMORY_HOTPLUG_SPARSE. This is just code > > movement without any functional change. > > > > Signed-off-by: Muchun Song > > Acked-by: Mike Kravetz > > Reviewed-by: Oscar Salvador > > Reviewed-by: David Hildenbrand > > Reviewed-by: Miaohe Lin > ... > > > diff --git a/mm/bootmem_info.c b/mm/bootmem_info.c > > new file mode 100644 > > index 000000000000..fcab5a3f8cc0 > > --- /dev/null > > +++ b/mm/bootmem_info.c > > @@ -0,0 +1,124 @@ > > +// SPDX-License-Identifier: GPL-2.0 > > +/* > > + * linux/mm/bootmem_info.c > > + * > > + * Copyright (C) > > Looks like incomplete > Not that my comment was, I should have said The copyright looks very incomplete Balbir Singh.