Received: by 2002:ac0:a5a6:0:0:0:0:0 with SMTP id m35-v6csp224192imm; Thu, 6 Sep 2018 01:09:24 -0700 (PDT) X-Google-Smtp-Source: ANB0VdblG0dAc1BzrjlUu2e67YU7IwCUqefopfyjV+vWv6NYdUv4XS4DhSrBTa0hdFCkwj4t0Rh+ X-Received: by 2002:a63:1b07:: with SMTP id b7-v6mr1557428pgb.444.1536221364371; Thu, 06 Sep 2018 01:09:24 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1536221364; cv=none; d=google.com; s=arc-20160816; b=tm/s1YAUDS06IWdMIJixfm5mFDuBrhmSAufYkSwrDkL377+rOGCeV2dX0bKJ7Ufa2o dsCvhUPL2WyJ2gSCM3p2Njmg1CnPT9vWArKC8CoB6PDYmI3VkaXZZF3kS2J5ZJB1xZYz ObMk/4ewXred4AOj4fWTdYU1TAIHAtTAysuoasU62Ogi1/miutlG1q6Z4DJEGIS30HdQ 5dH/gCHH95ZDws61+pDiCNjKatLNQtO5uHOCQ/exOwqqdvkrs2H8A79wKfM47GXypEfU e5KvhTDrxVqxW8qtU7ztI2Lahi8DbdXS7SSNPZf2eL1Np1gpEkSedOmsibOH6FYOfikh EltA== 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=jixM1ZxwDvkxXnnbYM6IUJ1+IuQ8TujBpX2X3TMok3Q=; b=i3DjWTZO220OW/mmRNeINYCNOpzpHTkTBQdrGhwiScA18TaUPpCZvhAiQ7CVMFol4r XZ3NOC87AxqDoxXQ29Fnb9GS/9oYs0oeUGtwGcUPZlCZZ4ccXm6YnzsbowiEqLNu+kxR V976wG5VnN6T2BFMz6onDJZmQDuDaskvz5x/Zx2HjkHleK4fvO7zJzVxo2kJV03uz0bB AGyYTVx/F1RsiHdPZUUbHCM+dZCiYaoSBUNC/OeaAA6TV7qvcDmYiIw01UHeE7/RnYSL XmG5X627QwvpATSpy/2TsfcpyF0Kr+mKxn+ZJgaR/6ssGH3iFz1YAjVrZ7Xag9eIM5tm NlUA== 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 74-v6si4679415pfz.160.2018.09.06.01.09.08; Thu, 06 Sep 2018 01:09:24 -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 S1727946AbeIFMmU (ORCPT + 99 others); Thu, 6 Sep 2018 08:42:20 -0400 Received: from mx2.suse.de ([195.135.220.15]:34760 "EHLO mx1.suse.de" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1726490AbeIFMmU (ORCPT ); Thu, 6 Sep 2018 08:42:20 -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 4F7B7AE0E; Thu, 6 Sep 2018 08:08:05 +0000 (UTC) Date: Thu, 6 Sep 2018 10:08:04 +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 15/29] memblock: replace alloc_bootmem_pages_node with memblock_alloc_node Message-ID: <20180906080804.GX14951@dhcp22.suse.cz> References: <1536163184-26356-1-git-send-email-rppt@linux.vnet.ibm.com> <1536163184-26356-16-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-16-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:30, Mike Rapoport wrote: > Signed-off-by: Mike Rapoport again a short work of wisdom please. The change itself looks good. Acked-by: Michal Hocko > --- > arch/ia64/mm/init.c | 8 ++++---- > 1 file changed, 4 insertions(+), 4 deletions(-) > > diff --git a/arch/ia64/mm/init.c b/arch/ia64/mm/init.c > index 3b85c3e..ffcc358 100644 > --- a/arch/ia64/mm/init.c > +++ b/arch/ia64/mm/init.c > @@ -447,19 +447,19 @@ int __init create_mem_map_page_table(u64 start, u64 end, void *arg) > for (address = start_page; address < end_page; address += PAGE_SIZE) { > pgd = pgd_offset_k(address); > if (pgd_none(*pgd)) > - pgd_populate(&init_mm, pgd, alloc_bootmem_pages_node(NODE_DATA(node), PAGE_SIZE)); > + pgd_populate(&init_mm, pgd, memblock_alloc_node(PAGE_SIZE, PAGE_SIZE, node)); > pud = pud_offset(pgd, address); > > if (pud_none(*pud)) > - pud_populate(&init_mm, pud, alloc_bootmem_pages_node(NODE_DATA(node), PAGE_SIZE)); > + pud_populate(&init_mm, pud, memblock_alloc_node(PAGE_SIZE, PAGE_SIZE, node)); > pmd = pmd_offset(pud, address); > > if (pmd_none(*pmd)) > - pmd_populate_kernel(&init_mm, pmd, alloc_bootmem_pages_node(NODE_DATA(node), PAGE_SIZE)); > + pmd_populate_kernel(&init_mm, pmd, memblock_alloc_node(PAGE_SIZE, PAGE_SIZE, node)); > pte = pte_offset_kernel(pmd, address); > > if (pte_none(*pte)) > - set_pte(pte, pfn_pte(__pa(alloc_bootmem_pages_node(NODE_DATA(node), PAGE_SIZE)) >> PAGE_SHIFT, > + set_pte(pte, pfn_pte(__pa(memblock_alloc_node(PAGE_SIZE, PAGE_SIZE, node))) >> PAGE_SHIFT, > PAGE_KERNEL)); > } > return 0; > -- > 2.7.4 > -- Michal Hocko SUSE Labs