Received: by 2002:ac0:a5a6:0:0:0:0:0 with SMTP id m35-v6csp213903imm; Thu, 6 Sep 2018 00:57:15 -0700 (PDT) X-Google-Smtp-Source: ANB0VdbCd87I0gCRn3hUBSv1h80V7ZRLbzbp7LtShVWEdfES9jUl0psHg2J7VOSB2ohbLICWPC1Y X-Received: by 2002:a62:2f84:: with SMTP id v126-v6mr1573907pfv.115.1536220635221; Thu, 06 Sep 2018 00:57:15 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1536220635; cv=none; d=google.com; s=arc-20160816; b=GcTB18CPM6t740NngB2Z7bTyRVIR0lBdoIWzNICrmEaqmrVrnPUXASM/tpX5a95eSa vDM1VD6LPBKcH+GOvB8sWUBdoMz8wQ5UVosZ7QbYrqtyScHcWS2HpwQ/Te52labIV5b5 PbLENMNVCBsgbdEA1bgZeaRntxSS/9vjAai2A4CdRLx2p7MDvbsBgH+OKjW4TrOriC5g 2P6I1OoSZzaiUPhjgN0NhkCvmYoVRDM/gJr2KCMuLpGEV+tx54TN6CGyZtGvFaSYQftS Vot3zcAJ/qGlzwj0+M5JT79sZdC8KRD24pAJmqrpmBLlkd7LZ9EvPOuo+sVqVvuul3sV 6C5Q== 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=Ue8h3sbzxc12sVDWi7kC+yTKhiA+4kpLOZYlnkhpeto=; b=XRp4AfKCna0ugHS/D3XJ181R+aDbfeJwAze6O8RZfwK0+Z6GOUigh7306/+qyYNsLK VfFCbZt3e9n9NQZcfnHyxHMf3ITu9mmKpZrY5TpDXFiFcE5DCjmdKCg9OMKqnyFJE6L0 KTCnfF2G4o1xraBzd+U9TXJ5C6qvcwrrCKuLbOLE98fApR8xhvF8WdzTsiC9p3nJCSvj hMMfi2wxJksigmu1OtBp4W0DAdslXmmWbBe7tzCjbDT/bYrLH7/FYH2a22cJf0UvsGOq eNysKxHnzlGDDz79cIIRIoGzzhABkXsRE8Bj0vE5T2NjHbCbfLmFAVmVyAc+dh2nETO/ 6EhQ== 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 w4-v6si4339254pgj.566.2018.09.06.00.56.58; Thu, 06 Sep 2018 00:57:15 -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 S1728023AbeIFM37 (ORCPT + 99 others); Thu, 6 Sep 2018 08:29:59 -0400 Received: from mx2.suse.de ([195.135.220.15]:33004 "EHLO mx1.suse.de" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1725819AbeIFM37 (ORCPT ); Thu, 6 Sep 2018 08:29:59 -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 55AB0AC1F; Thu, 6 Sep 2018 07:55:47 +0000 (UTC) Date: Thu, 6 Sep 2018 09:55:46 +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 12/29] memblock: replace alloc_bootmem_low with memblock_alloc_low Message-ID: <20180906075546.GU14951@dhcp22.suse.cz> References: <1536163184-26356-1-git-send-email-rppt@linux.vnet.ibm.com> <1536163184-26356-13-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-13-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:27, Mike Rapoport wrote: > The alloc_bootmem_low(size) allocates low memory with default alignement > and can be replcaed by memblock_alloc_low(size, 0) > > Signed-off-by: Mike Rapoport Again _virt renaming thing... Acked-by: Michal Hocko > --- > arch/arm64/kernel/setup.c | 2 +- > arch/unicore32/kernel/setup.c | 2 +- > 2 files changed, 2 insertions(+), 2 deletions(-) > > diff --git a/arch/arm64/kernel/setup.c b/arch/arm64/kernel/setup.c > index 5b4fac4..cf7a7b7 100644 > --- a/arch/arm64/kernel/setup.c > +++ b/arch/arm64/kernel/setup.c > @@ -213,7 +213,7 @@ static void __init request_standard_resources(void) > kernel_data.end = __pa_symbol(_end - 1); > > for_each_memblock(memory, region) { > - res = alloc_bootmem_low(sizeof(*res)); > + res = memblock_alloc_low(sizeof(*res), 0); > if (memblock_is_nomap(region)) { > res->name = "reserved"; > res->flags = IORESOURCE_MEM; > diff --git a/arch/unicore32/kernel/setup.c b/arch/unicore32/kernel/setup.c > index c2bffa5..9f163f9 100644 > --- a/arch/unicore32/kernel/setup.c > +++ b/arch/unicore32/kernel/setup.c > @@ -207,7 +207,7 @@ request_standard_resources(struct meminfo *mi) > if (mi->bank[i].size == 0) > continue; > > - res = alloc_bootmem_low(sizeof(*res)); > + res = memblock_alloc_low(sizeof(*res), 0); > res->name = "System RAM"; > res->start = mi->bank[i].start; > res->end = mi->bank[i].start + mi->bank[i].size - 1; > -- > 2.7.4 > -- Michal Hocko SUSE Labs