Received: by 2002:ac0:a5a6:0:0:0:0:0 with SMTP id m35-v6csp204126imm; Thu, 6 Sep 2018 00:43:27 -0700 (PDT) X-Google-Smtp-Source: ANB0VdbBtRYa0l3qg3cbCjTzLCUvAHPMO0IddLk+7fUGz8Kc+QRHqSwRO/apcx0qdXQJwBsr1JTj X-Received: by 2002:a63:ef10:: with SMTP id u16-v6mr1448707pgh.269.1536219807557; Thu, 06 Sep 2018 00:43:27 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1536219807; cv=none; d=google.com; s=arc-20160816; b=ZOTRG8M53pYKJVrL4RmRsAM91B2faVXba2XjcWZwO1yCLxMw1dYbhg7kvPyRG4JNeb N1tWhYN6B9vFf2H490y/z1WDsiTDP4WWIYoQ4hAUg7vH93LMzel/1CBzEYXM9dIDBeFN scsGFf8ik2BADq6x5ovpIxqT2eUOh5tRdExYXSwAmc5rZhxVYurPWfwkqA5tpsEknHi5 ajdhM1zrL95exqewE5Sw/mOtn0jezOjOlwYmQ23RvkVw76w2+xJymkVrmPByg0OiacRn YK08BCkypBJuNr/pITGldzUnRxRqgBEq8IeaeKBcMFR0ATX/TcJXu2USeqjNrILc/m6d fVqw== 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=d52i/w9RkNW8eSbzGRDOsfg8mepV9o8axqUPAbepMe8=; b=IHkClK4u3NAspB1thTBTo3YgYxA/XEdGxRyhDykAghsQXvfbNxBHvUFtDosRnhcGBf KKLqjRGjnreWj3nX27ixbB4nh1YC6HmIjfoE+x9uKd6Z6N4bYo1wG9GovAtszW/owwUb HlR5vPdNzi03h1/gt5IKwAp1YJsnZWBoObS1Sw0ndKW9Xi5V9hlBmJnNiIP50LIUULsM 0cxrATl/znJOoHWWXWJ559iITyBDXQ5w0XkKcXyePmaE5WRV5f+6doxm9Zre6fWrihIH 31q2pN6HVAK8mMIq03wtkUPpCEC9cr75+WHzhLhlDjF8vkEqDXDiGTPzvYX+SM3a6irY R1Ag== 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 t8-v6si4150776plo.319.2018.09.06.00.43.12; Thu, 06 Sep 2018 00:43:27 -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 S1727999AbeIFMPY (ORCPT + 99 others); Thu, 6 Sep 2018 08:15:24 -0400 Received: from mx2.suse.de ([195.135.220.15]:59450 "EHLO mx1.suse.de" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1725929AbeIFMPY (ORCPT ); Thu, 6 Sep 2018 08:15:24 -0400 X-Virus-Scanned: by amavisd-new at test-mx.suse.de Received: from relay2.suse.de (unknown [195.135.220.254]) by mx1.suse.de (Postfix) with ESMTP id 03057AD98; Thu, 6 Sep 2018 07:41:15 +0000 (UTC) Date: Thu, 6 Sep 2018 09:41:14 +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 09/29] memblock: replace alloc_bootmem_low with memblock_alloc_low Message-ID: <20180906074114.GR14951@dhcp22.suse.cz> References: <1536163184-26356-1-git-send-email-rppt@linux.vnet.ibm.com> <1536163184-26356-10-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-10-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:24, Mike Rapoport wrote: > The functions are equivalent, just the later does not require nobootmem > translation layer. > > Signed-off-by: Mike Rapoport modulo @memblock_alloc_low@@memblock_virt_alloc_low@ Acked-by: Michal Hocko > --- > arch/x86/kernel/tce_64.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/arch/x86/kernel/tce_64.c b/arch/x86/kernel/tce_64.c > index f386bad..54c9b5a 100644 > --- a/arch/x86/kernel/tce_64.c > +++ b/arch/x86/kernel/tce_64.c > @@ -173,7 +173,7 @@ void * __init alloc_tce_table(void) > size = table_size_to_number_of_entries(specified_table_size); > size *= TCE_ENTRY_SIZE; > > - return __alloc_bootmem_low(size, size, 0); > + return memblock_alloc_low(size, size); > } > > void __init free_tce_table(void *tbl) > -- > 2.7.4 -- Michal Hocko SUSE Labs