Received: by 2002:ac0:a5a6:0:0:0:0:0 with SMTP id m35-v6csp202267imm; Thu, 6 Sep 2018 00:40:54 -0700 (PDT) X-Google-Smtp-Source: ANB0VdZi14XJ+3Stj+MpGJ5oYBETSePyCVa6jE2YTjTqUzEzlPyA8aUfi9lQtYigjn17dEesXgNL X-Received: by 2002:a63:5b63:: with SMTP id l35-v6mr1521411pgm.50.1536219654407; Thu, 06 Sep 2018 00:40:54 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1536219654; cv=none; d=google.com; s=arc-20160816; b=v7f9S1Z9fyCqn0f3F95U0F5s9FQQ2uHgPmDwT2QDxk+tDQi6iwoCBf9jmb6fqHacz6 IZoRHfzOPwuwvH9oJjq2v78g3MlwB3q5+Lybj8HMMz+tbP/0foQSWOg9+Qtc8cxVum3l GyBBqLA7ruV3vAodIMuZkLinx/mMWi7N7IPMTH4cesaDqLgKRohs5hi7Tq67RE+N5ZYf /nsaUJySptqjsejHVTUwbZybesrc0keJL4CF5EgHih5IXluAhxZcnNWmAKjUgZzgqyvm 79mvFI8Yb28Rirbv9x/4YcCVy5dtlDCxDzw//J1btoKhTq6n6JPPshYO4Kcd5E00dRks 0/Bw== 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=dB4Qg/Nz0GA0WzEjhELr+cLoJDbAgQ5xo3qHeZDZ694=; b=PnLgWPlJWa1Dl9jF1BId7VSYjFSaRgQ4tEpj82rIzWUa7+NscA2UYBouQqK4T8DAPn s/Lcfg7s8ERSv3RoD/WKdMyAmkb8JAn403cog+htHqssm+3HsdKiwriC5woUoy+BIRXr PWo9FMlsrzOeFSRbmuD9hfOAytjw7aHN1y5uOffitXw9c3lwJcbrG8LaPezDXi3aZ7N6 jTDWG66df+U7tbXHHygoslqfyMlO3tl9AXT8bO8iwiunpv2CGt17y/O2nfEfo92Iv20g rDPObpOCM5ll5PjmrUkZRG0lgSoUzA81nkRtSixMp++/jRAj0tEfZR2xjohZKZd6mY43 FhPA== 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 w8-v6si4620643pgw.647.2018.09.06.00.40.39; Thu, 06 Sep 2018 00:40:54 -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 S1727957AbeIFMNl (ORCPT + 99 others); Thu, 6 Sep 2018 08:13:41 -0400 Received: from mx2.suse.de ([195.135.220.15]:59146 "EHLO mx1.suse.de" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1725929AbeIFMNk (ORCPT ); Thu, 6 Sep 2018 08:13:40 -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 2BA6BADF4; Thu, 6 Sep 2018 07:39:32 +0000 (UTC) Date: Thu, 6 Sep 2018 09:39:31 +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 08/29] memblock: replace alloc_bootmem_align with memblock_alloc Message-ID: <20180906073931.GQ14951@dhcp22.suse.cz> References: <1536163184-26356-1-git-send-email-rppt@linux.vnet.ibm.com> <1536163184-26356-9-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-9-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:23, Mike Rapoport wrote: > The functions are equivalent, just the later does not require nobootmem > translation layer. > > Signed-off-by: Mike Rapoport Acked-by: Michal Hocko > --- > arch/x86/xen/p2m.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/arch/x86/xen/p2m.c b/arch/x86/xen/p2m.c > index 159a897..68c0f14 100644 > --- a/arch/x86/xen/p2m.c > +++ b/arch/x86/xen/p2m.c > @@ -180,7 +180,7 @@ static void p2m_init_identity(unsigned long *p2m, unsigned long pfn) > static void * __ref alloc_p2m_page(void) > { > if (unlikely(!slab_is_available())) > - return alloc_bootmem_align(PAGE_SIZE, PAGE_SIZE); > + return memblock_alloc(PAGE_SIZE, PAGE_SIZE); > > return (void *)__get_free_page(GFP_KERNEL); > } > -- > 2.7.4 -- Michal Hocko SUSE Labs