From patchwork Mon Aug 5 16:31:18 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Aruna Ramakrishna X-Patchwork-Id: 13753823 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from kanga.kvack.org (kanga.kvack.org [205.233.56.17]) by smtp.lore.kernel.org (Postfix) with ESMTP id A8566C52D71 for ; Mon, 5 Aug 2024 16:31:47 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id 429996B00AE; Mon, 5 Aug 2024 12:31:47 -0400 (EDT) Received: by kanga.kvack.org (Postfix, from userid 40) id 3D9876B00AF; Mon, 5 Aug 2024 12:31:47 -0400 (EDT) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id 2A19C6B00B2; Mon, 5 Aug 2024 12:31:47 -0400 (EDT) X-Delivered-To: linux-mm@kvack.org Received: from relay.hostedemail.com (smtprelay0013.hostedemail.com [216.40.44.13]) by kanga.kvack.org (Postfix) with ESMTP id 03ECB6B00AE for ; Mon, 5 Aug 2024 12:31:46 -0400 (EDT) Received: from smtpin18.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay06.hostedemail.com (Postfix) with ESMTP id CED8EA8FCC for ; Mon, 5 Aug 2024 16:31:29 +0000 (UTC) X-FDA: 82418732298.18.5FF1B4F Received: from mx0a-00069f02.pphosted.com (mx0a-00069f02.pphosted.com [205.220.165.32]) by imf15.hostedemail.com (Postfix) with ESMTP id 6E36CA0009 for ; Mon, 5 Aug 2024 16:31:27 +0000 (UTC) Authentication-Results: imf15.hostedemail.com; dkim=pass header.d=oracle.com header.s=corp-2023-11-20 header.b=JsYruA3v; dmarc=pass (policy=reject) header.from=oracle.com; spf=pass (imf15.hostedemail.com: domain of aruna.ramakrishna@oracle.com designates 205.220.165.32 as permitted sender) smtp.mailfrom=aruna.ramakrishna@oracle.com ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=hostedemail.com; s=arc-20220608; t=1722875418; h=from:from:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references:dkim-signature; bh=eefc9Mh53KRORsZjpXCTu+A860TC+S6vfh2bZP8GZ6M=; b=VLgdoAvOVUVPxZhU4+g6Gnzv1RMiULt7dPqtEC6t0w5oNEDGjPi1m3ppthGFhKp1uMf383 shShFU7BSnkfxQu8cKRMp0yxqxev3IxpavX4pADT7I4TRuL1oXMq2P91duh+qSikcEeB0Q S7RroSQhy5q7aHXRVSKeGxwkHjjMHTA= ARC-Seal: i=1; s=arc-20220608; d=hostedemail.com; t=1722875418; a=rsa-sha256; cv=none; b=4s/d89amiJszQrqvvjA5tV/cxVyjxaMYaZewIMcQyyiVExCztZ1zFuPpf1xrK6KyNio+lP F6Oge+SgbZdc8weTsRxeLoyhSIFKtzrA0pBWyQe2KtDBD7Bq9x6HuYy5ggpl22SYegzn9P r/88fJPuoYrcEnmnm0yggRncCDIX+kg= ARC-Authentication-Results: i=1; imf15.hostedemail.com; dkim=pass header.d=oracle.com header.s=corp-2023-11-20 header.b=JsYruA3v; dmarc=pass (policy=reject) header.from=oracle.com; spf=pass (imf15.hostedemail.com: domain of aruna.ramakrishna@oracle.com designates 205.220.165.32 as permitted sender) smtp.mailfrom=aruna.ramakrishna@oracle.com Received: from pps.filterd (m0246617.ppops.net [127.0.0.1]) by mx0b-00069f02.pphosted.com (8.18.1.2/8.18.1.2) with ESMTP id 475FtVbW012878; Mon, 5 Aug 2024 16:31:24 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=oracle.com; h= from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; s=corp-2023-11-20; bh=e efc9Mh53KRORsZjpXCTu+A860TC+S6vfh2bZP8GZ6M=; b=JsYruA3vXDzAi6RPu k0QIl+BW79eJZL1ReU6LMRAHjaxm6zr5Z43rzvNI93lfGFBLnMSAiA6pD0lh7xoc YUe2QNjC1JopmzSzJT8tgdI7iPTwwevFajnpItMEhhhbpjvves2BycusOrai5B1e NLVMyb+3fponaJ9JsCdyDjeIFAK/A+F3Q3rpGopDFJEcgmV5ATEw++WEgkuxatE4 YCzcXJZVttUVjwcKBs9KM5cIA/JeUph0eQHOvO5wrwGNqvCDOjWaG30xJgoGH/DC 7QTOtLEfQLoV7w75sFlCdTD7oZSwUlz2SN1BDIDv1QkkCMvCgW04CvPEgn+jFdNS EHXag== Received: from phxpaimrmta03.imrmtpd1.prodappphxaev1.oraclevcn.com (phxpaimrmta03.appoci.oracle.com [138.1.37.129]) by mx0b-00069f02.pphosted.com (PPS) with ESMTPS id 40sd3uk18n-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Mon, 05 Aug 2024 16:31:24 +0000 (GMT) Received: from pps.filterd (phxpaimrmta03.imrmtpd1.prodappphxaev1.oraclevcn.com [127.0.0.1]) by phxpaimrmta03.imrmtpd1.prodappphxaev1.oraclevcn.com (8.17.1.19/8.17.1.19) with ESMTP id 475FVmJf035245; Mon, 5 Aug 2024 16:31:23 GMT Received: from pps.reinject (localhost [127.0.0.1]) by phxpaimrmta03.imrmtpd1.prodappphxaev1.oraclevcn.com (PPS) with ESMTPS id 40sb07mddd-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Mon, 05 Aug 2024 16:31:23 +0000 Received: from phxpaimrmta03.imrmtpd1.prodappphxaev1.oraclevcn.com (phxpaimrmta03.imrmtpd1.prodappphxaev1.oraclevcn.com [127.0.0.1]) by pps.reinject (8.17.1.5/8.17.1.5) with ESMTP id 475GPvBZ002152; Mon, 5 Aug 2024 16:31:23 GMT Received: from aruramak-ol9.osdevelopmeniad.oraclevcn.com (aruramak-ol9.allregionaliads.osdevelopmeniad.oraclevcn.com [100.100.250.99]) by phxpaimrmta03.imrmtpd1.prodappphxaev1.oraclevcn.com (PPS) with ESMTP id 40sb07mdcs-2; Mon, 05 Aug 2024 16:31:23 +0000 From: Aruna Ramakrishna To: linux-mm@kvack.org Cc: willy@infradead.org, aruna.ramakrishna@oracle.com Subject: [PATCH 2/4] mm/mempolicy: Make alloc_pages_mpol_noprof() static Date: Mon, 5 Aug 2024 16:31:18 +0000 Message-ID: <20240805163120.5971-2-aruna.ramakrishna@oracle.com> X-Mailer: git-send-email 2.43.5 In-Reply-To: <20240805163120.5971-1-aruna.ramakrishna@oracle.com> References: <20240805163120.5971-1-aruna.ramakrishna@oracle.com> MIME-Version: 1.0 X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.293,Aquarius:18.0.1039,Hydra:6.0.680,FMLib:17.12.28.16 definitions=2024-08-05_05,2024-08-02_01,2024-05-17_01 X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 suspectscore=0 spamscore=0 phishscore=0 mlxlogscore=999 mlxscore=0 adultscore=0 malwarescore=0 bulkscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2407110000 definitions=main-2408050119 X-Proofpoint-ORIG-GUID: 6t-TxLD0Cmj-56PBm_2341KuPBjFdHuf X-Proofpoint-GUID: 6t-TxLD0Cmj-56PBm_2341KuPBjFdHuf X-Rspamd-Server: rspam07 X-Rspamd-Queue-Id: 6E36CA0009 X-Stat-Signature: b7oc4wzxdstocceaxksprriy9jmqw8y8 X-Rspam-User: X-HE-Tag: 1722875487-928185 X-HE-Meta: U2FsdGVkX19iNK6G5VtgEDsnxhQa6w4ZHO4weLHInDoy7y/Ur6AzAWa+RJfDiYU19kDYcxBtn4Jy8kkjAScbBST7pd748nbNsM3ELq1/h6v23+Ew2C0oIzGsyD8F2wt6S+sl7KyYhffTj4wPRDKBQU0nqrZUzI8rAAtAKGKHsKquNNsEzQWSMlJMtCJiVVhNjPYFCmmqyVAzdPwpb0sSKZyorGGD3mpDqWsvOZ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@kvack.org Precedence: bulk X-Loop: owner-majordomo@kvack.org List-ID: List-Subscribe: List-Unsubscribe: As a first step to removing/replacing alloc_pages_mpol() and alloc_pages_mpol_noprof() with their folio equivalents, make alloc_pages_mpol_noprof() static. Signed-off-by: Aruna Ramakrishna --- include/linux/gfp.h | 7 ------- mm/mempolicy.c | 2 +- 2 files changed, 1 insertion(+), 8 deletions(-) diff --git a/include/linux/gfp.h b/include/linux/gfp.h index f53f76e0b17e..f5ce91ccc954 100644 --- a/include/linux/gfp.h +++ b/include/linux/gfp.h @@ -300,8 +300,6 @@ static inline struct page *alloc_pages_node_noprof(int nid, gfp_t gfp_mask, #ifdef CONFIG_NUMA struct page *alloc_pages_noprof(gfp_t gfp, unsigned int order); -struct page *alloc_pages_mpol_noprof(gfp_t gfp, unsigned int order, - struct mempolicy *mpol, pgoff_t ilx, int nid); struct folio *folio_alloc_noprof(gfp_t gfp, unsigned int order); struct folio *folio_alloc_mpol_noprof(gfp_t gfp, unsigned int order, struct mempolicy *mpol, pgoff_t ilx, int nid); @@ -312,11 +310,6 @@ static inline struct page *alloc_pages_noprof(gfp_t gfp_mask, unsigned int order { return alloc_pages_node_noprof(numa_node_id(), gfp_mask, order); } -static inline struct page *alloc_pages_mpol_noprof(gfp_t gfp, unsigned int order, - struct mempolicy *mpol, pgoff_t ilx, int nid) -{ - return alloc_pages_noprof(gfp, order); -} static inline struct folio *folio_alloc_noprof(gfp_t gfp, unsigned int order) { return __folio_alloc_node(gfp, order, numa_node_id()); diff --git a/mm/mempolicy.c b/mm/mempolicy.c index 2d367ef15d0f..6132a230a3b9 100644 --- a/mm/mempolicy.c +++ b/mm/mempolicy.c @@ -2216,7 +2216,7 @@ static struct page *alloc_pages_preferred_many(gfp_t gfp, unsigned int order, * * Return: The page on success or NULL if allocation fails. */ -struct page *alloc_pages_mpol_noprof(gfp_t gfp, unsigned int order, +static struct page *alloc_pages_mpol_noprof(gfp_t gfp, unsigned int order, struct mempolicy *pol, pgoff_t ilx, int nid) { nodemask_t *nodemask;