Message ID | 1536927045-23536-16-git-send-email-rppt@linux.vnet.ibm.com (mailing list archive) |
---|---|
State | New, archived |
Headers | show
Return-Path: <owner-linux-mm@kvack.org> Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 94EF5112B for <patchwork-linux-mm@patchwork.kernel.org>; Fri, 14 Sep 2018 12:12:44 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 7050A2B2A8 for <patchwork-linux-mm@patchwork.kernel.org>; Fri, 14 Sep 2018 12:12:44 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 626912B2AB; Fri, 14 Sep 2018 12:12:44 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-2.9 required=2.0 tests=BAYES_00,MAILING_LIST_MULTI, RCVD_IN_DNSWL_NONE autolearn=ham version=3.3.1 Received: from kanga.kvack.org (kanga.kvack.org [205.233.56.17]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id C958A2B2A8 for <patchwork-linux-mm@patchwork.kernel.org>; Fri, 14 Sep 2018 12:12:43 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id 258288E0011; Fri, 14 Sep 2018 08:12:42 -0400 (EDT) Delivered-To: linux-mm-outgoing@kvack.org Received: by kanga.kvack.org (Postfix, from userid 40) id 1DFF48E0001; Fri, 14 Sep 2018 08:12:42 -0400 (EDT) X-Original-To: int-list-linux-mm@kvack.org X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id 082478E0011; Fri, 14 Sep 2018 08:12:42 -0400 (EDT) X-Original-To: linux-mm@kvack.org X-Delivered-To: linux-mm@kvack.org Received: from mail-oi0-f71.google.com (mail-oi0-f71.google.com [209.85.218.71]) by kanga.kvack.org (Postfix) with ESMTP id CA2338E0001 for <linux-mm@kvack.org>; Fri, 14 Sep 2018 08:12:41 -0400 (EDT) Received: by mail-oi0-f71.google.com with SMTP id m21-v6so9200794oic.7 for <linux-mm@kvack.org>; Fri, 14 Sep 2018 05:12:41 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-original-authentication-results:x-gm-message-state:from:to:cc :subject:date:in-reply-to:references:message-id; bh=5+TYm1cxqPIT5rMpmRMDIVcy5DRjyoO45ogegfw7jQk=; b=O/r6g50c1tQ13nU3GCkBW2vuG+/iyfptfKCbLtmjAwPmb0+tjTBpO2AUPBV5jCLiOY G8B3M5kH20i6GWaUCmfRYIJ7FgpfqrpVsCma258BWHVJwlq6E9DgPQEcbJ//kiGeMQ5i R6Zz2ixJo01j0ThI5DUN83v+QDIKbIOzfKg0qB9kME54kVHgmeziWD+W3fIX+Z0ux8WM Ra0ehzTwljgZtm3YfVBVChPF8zcETQM2PQHghB+xzlj+aIpCAd9eD20Hg3VCzKvoF6RW uV/GqxWl5nUhaWFKHsUhbefxjNurwT1r4RCt+2MfrC0kdUeXSzf5Quq7ytMnp4wm90oZ z8BQ== X-Original-Authentication-Results: mx.google.com; spf=neutral (google.com: 148.163.156.1 is neither permitted nor denied by best guess record for domain of rppt@linux.vnet.ibm.com) smtp.mailfrom=rppt@linux.vnet.ibm.com; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=ibm.com X-Gm-Message-State: APzg51C6zbNRtP7g2OPd+RUzTq5imb4NnzoQTBb3KxaxeLHsXpmR9TrR MhxUCJPZhbaLsfvf9pOyuzUGbHiFVkxKzF6hzr7v3cLWF6w38MaG3I13p4vQv4CJDqPfZ1Gn6iJ 1806jUYNxWC2HsSH0IJTJ+JtdBJVSWkHxCsxt2dKvM4LwvqzFeHkwKwabzR3sazg= X-Received: by 2002:a9d:3c8e:: with SMTP id z14-v6mr4552815otc.363.1536927161596; Fri, 14 Sep 2018 05:12:41 -0700 (PDT) X-Google-Smtp-Source: ANB0VdahfzdAq+jJ6QP2LcssHmOe/OXoIdNZEc0hmcrPtdJDa1f1EvD9mhpP3Qrn1advnWyUfU/g X-Received: by 2002:a9d:3c8e:: with SMTP id z14-v6mr4552769otc.363.1536927160609; Fri, 14 Sep 2018 05:12:40 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1536927160; cv=none; d=google.com; s=arc-20160816; b=vVh/2vBHHSL5AHcVDgU+uBk8OOrRq2e69eTSv5hGx82trXKlbUgIQODTMCnzxZE76K +zyi1arln/7Z/1mgyDBRKHBhhG6WNyuLcFPJ435qBc9OSVwi5dUF/Ife45FGa64LWcYQ U6ot5pW5ssUR9IwIGnZIPkrdhxLbqGQMjlcVkzvVr0ehPo3tM+EJqG408h3MMfnmRdi3 RkZPaaUpNsh2MUXvWGWbFiLRvIT1ZP0gaurrKmeQfE2TALAPuHoAECunJWW8p9AkkGMj Lx7P/SEAM7VjHvW9vWS/L93MZ35X1xGEgR/ZTObT+F9CSLY4+0Cvrnq4sud6a82up8sG WOEQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=message-id:references:in-reply-to:date:subject:cc:to:from; bh=5+TYm1cxqPIT5rMpmRMDIVcy5DRjyoO45ogegfw7jQk=; b=S294LZZr07D8guUJCXK5iw+Bzz7+BdGjaMcnzlMbTXx2lbxQL/0TX6bJA2aJsFV/XC T5yZEsSRgUiZYd6oBN1Fu5nFjEfFLJq4roHWh1T+oGbjAnkf9+kqHxJN/Cc+duK8zCgI 166I8X/qJEcCFmO+I18Ra1ykVr2GFdFtxAXcoq9DU04i9APo2aTVxXoBePwDxalogQia 7C9aK3iDcveNoE6WKVzz+zTDniPKZG4SIzzFIoH/rtZGhnLwegNR3dH4OEhokCm3rCmt rFrlSAL7fAxq5MnmHPMA4bZiXqfgR4bvaNzbkL5/2ndfq8ISIuK551TQBhTpr7/suhav RBrA== ARC-Authentication-Results: i=1; mx.google.com; spf=neutral (google.com: 148.163.156.1 is neither permitted nor denied by best guess record for domain of rppt@linux.vnet.ibm.com) smtp.mailfrom=rppt@linux.vnet.ibm.com; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=ibm.com Received: from mx0a-001b2d01.pphosted.com (mx0a-001b2d01.pphosted.com. [148.163.156.1]) by mx.google.com with ESMTPS id c18-v6si3489889oiy.298.2018.09.14.05.12.40 for <linux-mm@kvack.org> (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 14 Sep 2018 05:12:40 -0700 (PDT) Received-SPF: neutral (google.com: 148.163.156.1 is neither permitted nor denied by best guess record for domain of rppt@linux.vnet.ibm.com) client-ip=148.163.156.1; Authentication-Results: mx.google.com; spf=neutral (google.com: 148.163.156.1 is neither permitted nor denied by best guess record for domain of rppt@linux.vnet.ibm.com) smtp.mailfrom=rppt@linux.vnet.ibm.com; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=ibm.com Received: from pps.filterd (m0098394.ppops.net [127.0.0.1]) by mx0a-001b2d01.pphosted.com (8.16.0.22/8.16.0.22) with SMTP id w8EC4YET125054 for <linux-mm@kvack.org>; Fri, 14 Sep 2018 08:12:39 -0400 Received: from e06smtp07.uk.ibm.com (e06smtp07.uk.ibm.com [195.75.94.103]) by mx0a-001b2d01.pphosted.com with ESMTP id 2mgc6csr6n-1 (version=TLSv1.2 cipher=AES256-GCM-SHA384 bits=256 verify=NOT) for <linux-mm@kvack.org>; Fri, 14 Sep 2018 08:12:39 -0400 Received: from localhost by e06smtp07.uk.ibm.com with IBM ESMTP SMTP Gateway: Authorized Use Only! Violators will be prosecuted for <linux-mm@kvack.org> from <rppt@linux.vnet.ibm.com>; Fri, 14 Sep 2018 13:12:35 +0100 Received: from b06cxnps3074.portsmouth.uk.ibm.com (9.149.109.194) by e06smtp07.uk.ibm.com (192.168.101.137) with IBM ESMTP SMTP Gateway: Authorized Use Only! Violators will be prosecuted; (version=TLSv1/SSLv3 cipher=AES256-GCM-SHA384 bits=256/256) Fri, 14 Sep 2018 13:12:24 +0100 Received: from d06av22.portsmouth.uk.ibm.com (d06av22.portsmouth.uk.ibm.com [9.149.105.58]) by b06cxnps3074.portsmouth.uk.ibm.com (8.14.9/8.14.9/NCO v10.0) with ESMTP id w8ECCNFE44368042 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=FAIL); Fri, 14 Sep 2018 12:12:23 GMT Received: from d06av22.portsmouth.uk.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id 12CBB4C040; Fri, 14 Sep 2018 15:12:14 +0100 (BST) Received: from d06av22.portsmouth.uk.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id DCE804C044; Fri, 14 Sep 2018 15:12:08 +0100 (BST) Received: from rapoport-lnx (unknown [9.148.207.116]) by d06av22.portsmouth.uk.ibm.com (Postfix) with ESMTPS; Fri, 14 Sep 2018 15:12:08 +0100 (BST) Received: by rapoport-lnx (sSMTP sendmail emulation); Fri, 14 Sep 2018 15:12:17 +0300 From: Mike Rapoport <rppt@linux.vnet.ibm.com> To: linux-mm@kvack.org Cc: Andrew Morton <akpm@linux-foundation.org>, Catalin Marinas <catalin.marinas@arm.com>, Chris Zankel <chris@zankel.net>, "David S. Miller" <davem@davemloft.net>, Geert Uytterhoeven <geert@linux-m68k.org>, Greentime Hu <green.hu@gmail.com>, Greg Kroah-Hartman <gregkh@linuxfoundation.org>, Guan Xuetao <gxt@pku.edu.cn>, Ingo Molnar <mingo@redhat.com>, "James E.J. Bottomley" <jejb@parisc-linux.org>, Jonas Bonn <jonas@southpole.se>, Jonathan Corbet <corbet@lwn.net>, Ley Foon Tan <lftan@altera.com>, Mark Salter <msalter@redhat.com>, Martin Schwidefsky <schwidefsky@de.ibm.com>, Matt Turner <mattst88@gmail.com>, Michael Ellerman <mpe@ellerman.id.au>, Michal Hocko <mhocko@suse.com>, Michal Simek <monstr@monstr.eu>, Palmer Dabbelt <palmer@sifive.com>, Paul Burton <paul.burton@mips.com>, Richard Kuo <rkuo@codeaurora.org>, Richard Weinberger <richard@nod.at>, Rich Felker <dalias@libc.org>, Russell King <linux@armlinux.org.uk>, Serge Semin <fancer.lancer@gmail.com>, Thomas Gleixner <tglx@linutronix.de>, Tony Luck <tony.luck@intel.com>, Vineet Gupta <vgupta@synopsys.com>, Yoshinori Sato <ysato@users.sourceforge.jp>, linux-alpha@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-c6x-dev@linux-c6x.org, linux-hexagon@vger.kernel.org, linux-ia64@vger.kernel.org, linux-kernel@vger.kernel.org, linux-m68k@lists.linux-m68k.org, linux-mips@linux-mips.org, linux-parisc@vger.kernel.org, linuxppc-dev@lists.ozlabs.org, linux-riscv@lists.infradead.org, linux-s390@vger.kernel.org, linux-sh@vger.kernel.org, linux-snps-arc@lists.infradead.org, linux-um@lists.infradead.org, nios2-dev@lists.rocketboards.org, openrisc@lists.librecores.org, sparclinux@vger.kernel.org, uclinux-h8-devel@lists.sourceforge.jp, Mike Rapoport <rppt@linux.vnet.ibm.com> Subject: [PATCH 15/30] memblock: replace alloc_bootmem_pages_node with memblock_alloc_node Date: Fri, 14 Sep 2018 15:10:30 +0300 X-Mailer: git-send-email 2.7.4 In-Reply-To: <1536927045-23536-1-git-send-email-rppt@linux.vnet.ibm.com> References: <1536927045-23536-1-git-send-email-rppt@linux.vnet.ibm.com> X-TM-AS-GCONF: 00 x-cbid: 18091412-0028-0000-0000-000002F958BB X-IBM-AV-DETECTION: SAVI=unused REMOTE=unused XFE=unused x-cbparentid: 18091412-0029-0000-0000-000023B30126 Message-Id: <1536927045-23536-16-git-send-email-rppt@linux.vnet.ibm.com> X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10434:,, definitions=2018-09-14_06:,, signatures=0 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 priorityscore=1501 malwarescore=0 suspectscore=1 phishscore=0 bulkscore=0 spamscore=0 clxscore=1015 lowpriorityscore=0 mlxscore=0 impostorscore=0 mlxlogscore=668 adultscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.0.1-1807170000 definitions=main-1809140129 X-Bogosity: Ham, tests=bogofilter, spamicity=0.000000, version=1.2.4 Sender: owner-linux-mm@kvack.org Precedence: bulk X-Loop: owner-majordomo@kvack.org List-ID: <linux-mm.kvack.org> X-Virus-Scanned: ClamAV using ClamSMTP |
Series |
mm: remove bootmem allocator
|
expand
|
diff --git a/arch/ia64/mm/init.c b/arch/ia64/mm/init.c index 3b85c3e..2169ca5 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;