Received: by 2002:ac0:a5a6:0:0:0:0:0 with SMTP id m35-v6csp273428imm; Thu, 6 Sep 2018 02:08:53 -0700 (PDT) X-Google-Smtp-Source: ANB0VdYLKD5y9ppOF5vU2dJepJ0Jb+gVpNpc+1eytVecSLikcravubp7Ee3IU9J5qPgb4TTDWsps X-Received: by 2002:a62:3001:: with SMTP id w1-v6mr1819908pfw.19.1536224933494; Thu, 06 Sep 2018 02:08:53 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1536224933; cv=none; d=google.com; s=arc-20160816; b=xjhpd0fsqyXEYreLZ4zwWTtsZ6iM2kQ8FYa55MC0Ww36fzFc8aUd2xmwANSFnKrJl5 yaofy1GrRd70Oum9/PU6mQ+W/zQlk3auk5bLwg/lbVrfq1/LCuBjTZzu4CbzPTL4VWXV L5jGp0qpqgauG/oMUK37ONU5+ZPSfwUyFkzNoqAeyK+xoMy64p+eL6vp5kSK6cYN72O9 Ne0B3+TIA0ZFEOaaRYgyXB4kP1h7B3XGfKvhEtLHQPuB2VlTLsJ4SMcvbGRF/CEuW8Jg kVtI7vkcmhYZ5UVFH98Z28XW6snKoKFCmiUquyMkrP5/rL3okL8l5K6HrzDhvS4rOZej GVxw== 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; bh=+VB+2cYEfXYgeR6noGJU+X7jfcUhqgk7sOJ0bwgkCP0=; b=zLwFZ6ePeiERkWuI7v7uLvwGPdFI8OfDadRW5fU9CRX/ZAA4kGUQgQfq7EQX5hZIHM cOgW4X2SInze+NO9eQWDdkgHavSabkTMcjLYzg/w+ScpRr0CCUE3L42VD3t9qk0MTxdM lkElgTF74xZnQXLbaVpVU/C6bYw5qMGWJiuauwEeVXPgypwDMytTI6pn3m6S4nHXnpt1 TT1d3igUt9W7YKGHvzPZ3dByeg6BGZ1bxBTcPaiGCGvcxxHauU/pHgxdCuAIRGVvEmxb GNXOcDfCtKbS967Sn0LNEAjfhfBQYDjPAjcZwY6AQzy0uOcLNtn0YK3r00KlHwyTsWgP qPvA== 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id 32-v6si4480862plg.390.2018.09.06.02.08.37; Thu, 06 Sep 2018 02:08:53 -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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728304AbeIFNlM (ORCPT + 99 others); Thu, 6 Sep 2018 09:41:12 -0400 Received: from mx2.suse.de ([195.135.220.15]:43704 "EHLO mx1.suse.de" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1725894AbeIFNlM (ORCPT ); Thu, 6 Sep 2018 09:41:12 -0400 X-Virus-Scanned: by amavisd-new at test-mx.suse.de Received: from relay1.suse.de (unknown [195.135.220.254]) by mx1.suse.de (Postfix) with ESMTP id 20D98AF75; Thu, 6 Sep 2018 09:06:43 +0000 (UTC) Date: Thu, 6 Sep 2018 11:06:42 +0200 From: Michal Hocko To: Mike Rapoport Cc: linux-mm@kvack.org, Andrew Morton , "David S. Miller" , Greg Kroah-Hartman , Ingo Molnar , Michael Ellerman , Paul Burton , Thomas Gleixner , Tony Luck , linux-ia64@vger.kernel.org, linux-mips@linux-mips.org, linuxppc-dev@lists.ozlabs.org, sparclinux@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [RFC PATCH 26/29] memblock: rename __free_pages_bootmem to memblock_free_pages Message-ID: <20180906090642.GK14951@dhcp22.suse.cz> References: <1536163184-26356-1-git-send-email-rppt@linux.vnet.ibm.com> <1536163184-26356-27-git-send-email-rppt@linux.vnet.ibm.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1536163184-26356-27-git-send-email-rppt@linux.vnet.ibm.com> User-Agent: Mutt/1.10.1 (2018-07-13) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed 05-09-18 18:59:41, Mike Rapoport wrote: > The conversion is done using > > sed -i 's@__free_pages_bootmem@memblock_free_pages@' \ > $(git grep -l __free_pages_bootmem) > > Signed-off-by: Mike Rapoport Acked-by: Michal Hocko > --- > mm/internal.h | 2 +- > mm/memblock.c | 2 +- > mm/nobootmem.c | 2 +- > mm/page_alloc.c | 2 +- > 4 files changed, 4 insertions(+), 4 deletions(-) > > diff --git a/mm/internal.h b/mm/internal.h > index 87256ae..291eb2b 100644 > --- a/mm/internal.h > +++ b/mm/internal.h > @@ -161,7 +161,7 @@ static inline struct page *pageblock_pfn_to_page(unsigned long start_pfn, > } > > extern int __isolate_free_page(struct page *page, unsigned int order); > -extern void __free_pages_bootmem(struct page *page, unsigned long pfn, > +extern void memblock_free_pages(struct page *page, unsigned long pfn, > unsigned int order); > extern void prep_compound_page(struct page *page, unsigned int order); > extern void post_alloc_hook(struct page *page, unsigned int order, > diff --git a/mm/memblock.c b/mm/memblock.c > index 63df68b..55d7d50 100644 > --- a/mm/memblock.c > +++ b/mm/memblock.c > @@ -1639,7 +1639,7 @@ void __init __memblock_free_late(phys_addr_t base, phys_addr_t size) > end = PFN_DOWN(base + size); > > for (; cursor < end; cursor++) { > - __free_pages_bootmem(pfn_to_page(cursor), cursor, 0); > + memblock_free_pages(pfn_to_page(cursor), cursor, 0); > totalram_pages++; > } > } > diff --git a/mm/nobootmem.c b/mm/nobootmem.c > index bb64b09..9608bc5 100644 > --- a/mm/nobootmem.c > +++ b/mm/nobootmem.c > @@ -43,7 +43,7 @@ static void __init __free_pages_memory(unsigned long start, unsigned long end) > while (start + (1UL << order) > end) > order--; > > - __free_pages_bootmem(pfn_to_page(start), start, order); > + memblock_free_pages(pfn_to_page(start), start, order); > > start += (1UL << order); > } > diff --git a/mm/page_alloc.c b/mm/page_alloc.c > index 33c9e27..e143fae 100644 > --- a/mm/page_alloc.c > +++ b/mm/page_alloc.c > @@ -1333,7 +1333,7 @@ meminit_pfn_in_nid(unsigned long pfn, int node, > #endif > > > -void __init __free_pages_bootmem(struct page *page, unsigned long pfn, > +void __init memblock_free_pages(struct page *page, unsigned long pfn, > unsigned int order) > { > if (early_page_uninitialised(pfn)) > -- > 2.7.4 > -- Michal Hocko SUSE Labs