Received: by 2002:a05:6a10:8c0a:0:0:0:0 with SMTP id go10csp1602377pxb; Thu, 4 Mar 2021 16:03:30 -0800 (PST) X-Google-Smtp-Source: ABdhPJwUV2FTpJIsd9USK68qjr/GRnVzrh0EUE0qPshDcjbQWv+FzmdC4xK/Ew56q611bLrBWmaT X-Received: by 2002:a92:ce03:: with SMTP id b3mr6327434ilo.302.1614902609990; Thu, 04 Mar 2021 16:03:29 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1614902609; cv=none; d=google.com; s=arc-20160816; b=QrpADxFSa1jhreeBRfRbkBsszUKIadzs7QKMjWzolHeqnH/paPk28apCLTEfYhSqTb x9Y2Fex3l764mzepJiz+63gM5vzttYymi+jTzNOAP1Otg+aGeOPeRCc/z2/1XhKDMTL1 1iuuyvsmTKra9NncMv5M2N7QmOTZl34q5RbpNBYA4bxuvkwcIZ5T+AM3pjqWO9AD64qO 8eGRCuHFNXNJdyuQv+jZuSLj0W89WiYZ8WK4rqyY3yq9Vw0D8+fpNUb5sh7xXw0nomZh rGyPWKZtmTIJLlDO5VmqE0FGF69Vyyh8sNARhRUM8yo93+b7gHsBxTOQJMxITn/za+Rr XHSg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version:dkim-signature; bh=PHh6MdEXNUKZrwB9uZw23/DqWC2TOmpTX2HUQ2q/364=; b=cRNq3wEANggwFZFtYPcMdPzusxBu9ncjG8+632wJyyOFt/Y68Mivs9jmwmC7jLtL6j xFLDNOTcbOX9/ORtGzn8mE1vAPYhQfj6IUEc4OgU0mHj+MvOwauRq7dlzI1cOjedqIbe Ti6Y2yhPUpzB7EZJwkXdOvipf4TVggbwil81t2RiDr1DlZw575HsXD4rCJ01eiaEJesS VrGNzrYmJInwhZenf1iQhLCSwp0AXLwYE0abjsrV8lx8anV/aYwazfIGIFCKtSboR0wc KCJTs8GLU9JD7fb/XqSwqcIge5Cu13l33HDJmTgaYWmFZ3L6NeYZC9UyJOLT8CmxfPU+ EM5g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@bytedance-com.20150623.gappssmtp.com header.s=20150623 header.b=HxQdXk52; 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=fail (p=NONE sp=NONE dis=NONE) header.from=bytedance.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id r9si608382ilb.68.2021.03.04.16.03.16; Thu, 04 Mar 2021 16:03:29 -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=@bytedance-com.20150623.gappssmtp.com header.s=20150623 header.b=HxQdXk52; 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=fail (p=NONE sp=NONE dis=NONE) header.from=bytedance.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234246AbhCDFvy (ORCPT + 99 others); Thu, 4 Mar 2021 00:51:54 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:35922 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232697AbhCDFvm (ORCPT ); Thu, 4 Mar 2021 00:51:42 -0500 Received: from mail-pj1-x1031.google.com (mail-pj1-x1031.google.com [IPv6:2607:f8b0:4864:20::1031]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id E36FBC061756 for ; Wed, 3 Mar 2021 21:51:01 -0800 (PST) Received: by mail-pj1-x1031.google.com with SMTP id u12so6098082pjr.2 for ; Wed, 03 Mar 2021 21:51:01 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bytedance-com.20150623.gappssmtp.com; s=20150623; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=PHh6MdEXNUKZrwB9uZw23/DqWC2TOmpTX2HUQ2q/364=; b=HxQdXk52IXdtRkHu1/R6yxMuIjlbC3nn+FxxvSbrxxeQkNtjI5EB0s2Fhv3TvjIpKT qGGTY/1RU0C+gG/bxx0ujod2ciyhPCkICtGZyWHQPhKopE/dlptNwaZ1b2/Q7UAuHnX2 iCAdy9e7isLGXsJkHM7IL/+azvhPqg2dfhBTjDaduRklCTQ7/unUXVmDiLRP3yk6r4Ju uuy0+YvACY5utD8X1Up2mqX16SoGsBssE2YlD5+QEma2aVgClTi/XC5/Rh3roeTObTTW n6QlOv0fHJDhqUvh2ihs9fgHCllPXss2OIdHe2a6gTtXCOA/19tjxqG0GnYd9VvlNzT4 LQXQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=PHh6MdEXNUKZrwB9uZw23/DqWC2TOmpTX2HUQ2q/364=; b=NP9iNCD+W76lQJuOJr1vT6AEQYDIjSXpiljbdUR5lUtIOEZshKrrJ5AunSrl1QtgjI wisOxIaQq/nXauSBoc7b/WonpvkL31/dXY3FgAOgaK2IqvN57n8s8o+m3DC8KTSJztxg AjgHDuLIFVf6qFZfTH4UXMmnTArpNM3a4y65JAet1418mqjUEoA+XSMeGF/pz4fk6+yj YT6/fsLQ+HJB8aCOjpQwsQ8mCIve1CzpZTt2cAC3/umrmhFoidhhvRh2xekJFPrqihZG OFfoZkp5gHL3HdmPqkVv9R16sL5L4jOXDz75rA0nq4uMVADe8o/U9kPNFTffTGrye/z8 ijQg== X-Gm-Message-State: AOAM533ApRpBFOfLQAuEkTss41KXpUtDWioXsbuvhlksBLcSmobVkPD4 I4y5eVrtSannq/1gQ+f4weQMnOaFObEXuQ2qNUUcgw== X-Received: by 2002:a17:90a:778a:: with SMTP id v10mr2679820pjk.229.1614837061472; Wed, 03 Mar 2021 21:51:01 -0800 (PST) MIME-Version: 1.0 References: <20210225132130.26451-1-songmuchun@bytedance.com> <20210225132130.26451-2-songmuchun@bytedance.com> <20210304042617.GB1223287@balbir-desktop> In-Reply-To: <20210304042617.GB1223287@balbir-desktop> From: Muchun Song Date: Thu, 4 Mar 2021 13:50:23 +0800 Message-ID: Subject: Re: [External] Re: [PATCH v17 1/9] mm: memory_hotplug: factor out bootmem core functions to bootmem_info.c To: Balbir Singh Cc: Jonathan Corbet , Mike Kravetz , Thomas Gleixner , Ingo Molnar , bp@alien8.de, x86@kernel.org, hpa@zytor.com, dave.hansen@linux.intel.com, luto@kernel.org, Peter Zijlstra , Alexander Viro , Andrew Morton , paulmck@kernel.org, mchehab+huawei@kernel.org, pawan.kumar.gupta@linux.intel.com, Randy Dunlap , oneukum@suse.com, anshuman.khandual@arm.com, jroedel@suse.de, Mina Almasry , David Rientjes , Matthew Wilcox , Oscar Salvador , Michal Hocko , "Song Bao Hua (Barry Song)" , David Hildenbrand , =?UTF-8?B?SE9SSUdVQ0hJIE5BT1lBKOWggOWPoyDnm7TkuZ8p?= , Joao Martins , Xiongchun duan , linux-doc@vger.kernel.org, LKML , Linux Memory Management List , linux-fsdevel , Miaohe Lin Content-Type: text/plain; charset="UTF-8" Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, Mar 4, 2021 at 12:26 PM Balbir Singh wrote: > > 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 Yes. Just copied from mm/memory_hotplug.c. I can improve it in the next version. Thanks. > > Balbir Singh.