From patchwork Wed Sep 5 15:59:23 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Mike Rapoport X-Patchwork-Id: 10589127 Return-Path: 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 979D113AC for ; Wed, 5 Sep 2018 16:00:41 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 8EEED2A4FB for ; Wed, 5 Sep 2018 16:00:35 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 8CA612A61F; Wed, 5 Sep 2018 16:00:35 +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 029F82A49A for ; Wed, 5 Sep 2018 16:00:35 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id 1D1866B7401; Wed, 5 Sep 2018 12:00:26 -0400 (EDT) Delivered-To: linux-mm-outgoing@kvack.org Received: by kanga.kvack.org (Postfix, from userid 40) id 185F06B7402; Wed, 5 Sep 2018 12:00:26 -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 E2F7E6B7403; Wed, 5 Sep 2018 12:00:25 -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 A6E6C6B7401 for ; Wed, 5 Sep 2018 12:00:25 -0400 (EDT) Received: by mail-oi0-f71.google.com with SMTP id j17-v6so8987391oii.8 for ; Wed, 05 Sep 2018 09:00:25 -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=50w0lEgLBojGjWbI1N1aqiiZFvWmekq4uAN0VB1N/Gc=; b=WNWJDk72o3mBGoZTMgMIglKFJ96ZE8W5ijqgYAaoqmYg78Lz9j16XjO1DshiIWhdDu 2UF+WWlTDrxWXsaSLrIr6cdE4XYN0c7HmDZnNyo51R+k3kxe7lrLB2TRycqienVcu8UA xrzwXMx4cgKdajTa/O+KvlfSuA+xFvyMZJDZ10Pkyx6sHG8gU19qn4agEX9ANnPC1Mqv CRsgQ/8XaoeZCAjFe0Hql6RvcB9olgNggpuCRLp8RLVjCSbpwXJsO8CTufaaYveAkXHE t/1l+1HJ+LnthE6TV7xhz6ju13AfxOJkAp866C3toMok5F5qubHG4/7RcLo6yvA7GIY1 atPQ== 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: APzg51CUTTQXBuA0yGX5R8rDagSyd/L0Cwyxd7ksnBWv1Pw1QtrAib+q VD3BYqoKRr/AOgewZFz82xcXyaYMV5FKVehKe4y6i9fjKQIh3V693scyRSUio3TkoPcpvG/v8ea 6utTQxcI+O+Srt0HXan6159coaSmBDSmik7LM7MIEi/6htOsybOILijQiWRkHCkE= X-Received: by 2002:aca:7c5:: with SMTP id 188-v6mr32552265oih.58.1536163225450; Wed, 05 Sep 2018 09:00:25 -0700 (PDT) X-Google-Smtp-Source: ANB0VdaaD5pE2WoEDn2X3126PILZNO6/tcUlWEIHukIYgWtG1yY25AUlOrVCAfwjGO9o9ahDA6no X-Received: by 2002:aca:7c5:: with SMTP id 188-v6mr32552201oih.58.1536163224701; Wed, 05 Sep 2018 09:00:24 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1536163224; cv=none; d=google.com; s=arc-20160816; b=aFFan8rw43aIgwFmt0GFPTZfE7hJO4g3HTSAxVHZXnem+DN5T9Yx7OyVR+1h+K+QJ9 x58PH5AdwQ3HbLLkD9a+y6YDZ8oHIuANCPo8MUoVTUJfHXdzLp7FJkvJyCx3OyGSvpSh fZINFfiFY97i+JF22YHqHCL6zkyd63BZx0nVh5hN8w9eTyx1NBD/ijGv0Pt/AbMhW09Y 5R5U7mjtF/+GBX1rTrqBjsMA5ygkE04CdQvmt0EDEHrp8jEdZdA0iPXKlK0GjswdMcwy b0EO1yKCKiWi3qkjszs9inpADD6kR96pcEgwupHhCdHEQ7R8GhWOf8mDS5phLn3+dqar g9UA== 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=50w0lEgLBojGjWbI1N1aqiiZFvWmekq4uAN0VB1N/Gc=; b=T5+fDGW7Vz9KypwooBxijWFdiSdu4uqePEKjh5ydaYrbn5T6I6XqEtimanXDoeWrDc ffiv0Czn9xZa6lZ2R8I7RN0LEgpLN7eaFm4+Jknd8L3nkJymiFd7ga5grX8PLs28RMe+ S5u5ng4r1WK2o6RY3E6kYdz7ft8Hg0schyjej/6oJjzW1COckkDwg2lQgpopQn7fbEfv oyEi0DjN0YFNFZ0MbB6k5SSQK9kHsjW2znZeM5sjEMPyJsrxB4j2z318JnMg5k0wasZa z5MF0HjyxEp3lWZMhMnqa2E0E7duoTWfJqUrWU41eqdpAaV6Q5SxB1ISxr2aQLW2aV+4 2dFg== 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 m130-v6si1529915oif.200.2018.09.05.09.00.24 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 05 Sep 2018 09:00:24 -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 (m0098404.ppops.net [127.0.0.1]) by mx0a-001b2d01.pphosted.com (8.16.0.22/8.16.0.22) with SMTP id w85Fuas0022518 for ; Wed, 5 Sep 2018 12:00:23 -0400 Received: from e06smtp03.uk.ibm.com (e06smtp03.uk.ibm.com [195.75.94.99]) by mx0a-001b2d01.pphosted.com with ESMTP id 2magp9dacj-1 (version=TLSv1.2 cipher=AES256-GCM-SHA384 bits=256 verify=NOT) for ; Wed, 05 Sep 2018 12:00:22 -0400 Received: from localhost by e06smtp03.uk.ibm.com with IBM ESMTP SMTP Gateway: Authorized Use Only! Violators will be prosecuted for from ; Wed, 5 Sep 2018 17:00:15 +0100 Received: from b06cxnps4076.portsmouth.uk.ibm.com (9.149.109.198) by e06smtp03.uk.ibm.com (192.168.101.133) with IBM ESMTP SMTP Gateway: Authorized Use Only! Violators will be prosecuted; (version=TLSv1/SSLv3 cipher=AES256-GCM-SHA384 bits=256/256) Wed, 5 Sep 2018 17:00:11 +0100 Received: from d06av23.portsmouth.uk.ibm.com (d06av23.portsmouth.uk.ibm.com [9.149.105.59]) by b06cxnps4076.portsmouth.uk.ibm.com (8.14.9/8.14.9/NCO v10.0) with ESMTP id w85G0AiU41287824 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=FAIL); Wed, 5 Sep 2018 16:00:10 GMT Received: from d06av23.portsmouth.uk.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id A3683A405B; Wed, 5 Sep 2018 19:00:02 +0100 (BST) Received: from d06av23.portsmouth.uk.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id 8A0CBA4053; Wed, 5 Sep 2018 19:00:00 +0100 (BST) Received: from rapoport-lnx (unknown [9.148.8.92]) by d06av23.portsmouth.uk.ibm.com (Postfix) with ESMTPS; Wed, 5 Sep 2018 19:00:00 +0100 (BST) Received: by rapoport-lnx (sSMTP sendmail emulation); Wed, 05 Sep 2018 19:00:07 +0300 From: Mike Rapoport To: linux-mm@kvack.org Cc: Andrew Morton , "David S. Miller" , Greg Kroah-Hartman , Ingo Molnar , Michael Ellerman , Michal Hocko , 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, Mike Rapoport Subject: [RFC PATCH 08/29] memblock: replace alloc_bootmem_align with memblock_alloc Date: Wed, 5 Sep 2018 18:59:23 +0300 X-Mailer: git-send-email 2.7.4 In-Reply-To: <1536163184-26356-1-git-send-email-rppt@linux.vnet.ibm.com> References: <1536163184-26356-1-git-send-email-rppt@linux.vnet.ibm.com> X-TM-AS-GCONF: 00 x-cbid: 18090516-0012-0000-0000-000002A43AD7 X-IBM-AV-DETECTION: SAVI=unused REMOTE=unused XFE=unused x-cbparentid: 18090516-0013-0000-0000-000020D85DEE Message-Id: <1536163184-26356-9-git-send-email-rppt@linux.vnet.ibm.com> X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10434:,, definitions=2018-09-05_09:,, signatures=0 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 priorityscore=1501 malwarescore=0 suspectscore=3 phishscore=0 bulkscore=0 spamscore=0 clxscore=1015 lowpriorityscore=0 mlxscore=0 impostorscore=0 mlxlogscore=512 adultscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.0.1-1807170000 definitions=main-1809050164 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: X-Virus-Scanned: ClamAV using ClamSMTP 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); }