Received: by 2002:ac0:a5a6:0:0:0:0:0 with SMTP id m35-v6csp3996349imm; Wed, 5 Sep 2018 09:05:26 -0700 (PDT) X-Google-Smtp-Source: ANB0VdbEBNrGsnySlSsJeuPRm5nLfqFaNfyCOfHeGPDNKKFj2Za/TxsU8jemqMJ8eRXILpPABZUJ X-Received: by 2002:a63:fe02:: with SMTP id p2-v6mr37546636pgh.148.1536163526768; Wed, 05 Sep 2018 09:05:26 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1536163526; cv=none; d=google.com; s=arc-20160816; b=kT8kn3RmltCoCO9on/HELvOf0Orq2xyg+ZK/8OYXax7ukCInTPqTs+/EWLO9M9HpEk VO4EsOenfCkKCK/ff49rAdMtAvyb1SWbJATfRHl0Cp3GaaqxqsafowmpLyK5bnirV4z1 k/bNG46iwuXOyHv5HOQieD43oOY2qgJcMEDLtBkzOJsmoLbaKK6TI3ZfHKReNJNYWBZp G2q3hfi6tFoOunXzzkb7sEFqVeq8m2OfKTlROAHtrNFjfcLaZc/2kdCjua3rm768jcte ayOesUcSDyC3wcKp3ADupnaRXkC2tg1WGgcPh4BD2kwkgTMqkUlBEYOD9YYxTVXfYLrU h7oQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:message-id:references:in-reply-to:date :subject:cc:to:from; bh=50w0lEgLBojGjWbI1N1aqiiZFvWmekq4uAN0VB1N/Gc=; b=jh3F8vzx6rPsjLzmhc8d/V2cldfnCpscU+UD6BPkzc80J2boMpJF6XhidaLkeKF/tv Ey9JVbYXziuEZF0KyLwgeHjkC735rmfxzQSv1gXTaSjZrSMFrM+3WOhy3kW2ZeetPUc6 z//q69CorhxGCyVsNoGsXF6yEy/bJrmj4KHSdr2UiVoIbU1PO4aobfvzwcYi0zc3JyXn fxH5R8Rdq5L4UnKT6+ixgkuhb6Q9SqsmsB7vkMQGUXiDFxgZXazGtezhF5BFUKKooP8g SvmJ5olWO2w51FIzwisW0fwq38O6orGDJZ6y7Ty/8hxwpROUtSkkRNHm4FeuHV1zT9BA c80A== 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=ibm.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id 64-v6si2144392plk.257.2018.09.05.09.05.09; Wed, 05 Sep 2018 09:05:26 -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=ibm.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727808AbeIEUbM (ORCPT + 99 others); Wed, 5 Sep 2018 16:31:12 -0400 Received: from mx0b-001b2d01.pphosted.com ([148.163.158.5]:38552 "EHLO mx0a-001b2d01.pphosted.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1727735AbeIEUbM (ORCPT ); Wed, 5 Sep 2018 16:31:12 -0400 Received: from pps.filterd (m0098414.ppops.net [127.0.0.1]) by mx0b-001b2d01.pphosted.com (8.16.0.22/8.16.0.22) with SMTP id w85FteAc102791 for ; Wed, 5 Sep 2018 12:00:22 -0400 Received: from e06smtp03.uk.ibm.com (e06smtp03.uk.ibm.com [195.75.94.99]) by mx0b-001b2d01.pphosted.com with ESMTP id 2maj7dga70-1 (version=TLSv1.2 cipher=AES256-GCM-SHA384 bits=256 verify=NOT) for ; Wed, 05 Sep 2018 12:00:17 -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 suspectscore=3 malwarescore=0 phishscore=0 bulkscore=0 spamscore=0 mlxscore=0 lowpriorityscore=0 mlxlogscore=513 adultscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.0.1-1807170000 definitions=main-1809050164 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org The functions are equivalent, just the later does not require nobootmem translation layer. Signed-off-by: Mike Rapoport --- 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); } -- 2.7.4