From patchwork Tue Jun 4 17:41:34 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Sid Kumar X-Patchwork-Id: 13685731 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 CC254C25B78 for ; Tue, 4 Jun 2024 17:42:36 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id 9FCF36B00A1; Tue, 4 Jun 2024 13:42:27 -0400 (EDT) Received: by kanga.kvack.org (Postfix, from userid 40) id 986646B00A2; Tue, 4 Jun 2024 13:42:27 -0400 (EDT) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id 78AFF6B00A3; Tue, 4 Jun 2024 13:42:27 -0400 (EDT) X-Delivered-To: linux-mm@kvack.org Received: from relay.hostedemail.com (smtprelay0010.hostedemail.com [216.40.44.10]) by kanga.kvack.org (Postfix) with ESMTP id 511676B00A1 for ; Tue, 4 Jun 2024 13:42:27 -0400 (EDT) Received: from smtpin07.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay09.hostedemail.com (Postfix) with ESMTP id 1A07380FF7 for ; Tue, 4 Jun 2024 17:42:27 +0000 (UTC) X-FDA: 82193925534.07.929C4FE Received: from mx0a-00069f02.pphosted.com (mx0a-00069f02.pphosted.com [205.220.165.32]) by imf08.hostedemail.com (Postfix) with ESMTP id A735C160011 for ; Tue, 4 Jun 2024 17:42:23 +0000 (UTC) Authentication-Results: imf08.hostedemail.com; dkim=pass header.d=oracle.com header.s=corp-2023-11-20 header.b=NxXKnhXC; dkim=pass header.d=oracle.onmicrosoft.com header.s=selector2-oracle-onmicrosoft-com header.b=S27tGbpU; spf=pass (imf08.hostedemail.com: domain of sidhartha.kumar@oracle.com designates 205.220.165.32 as permitted sender) smtp.mailfrom=sidhartha.kumar@oracle.com; arc=pass ("microsoft.com:s=arcselector9901:i=1"); dmarc=pass (policy=quarantine) header.from=oracle.com ARC-Seal: i=2; s=arc-20220608; d=hostedemail.com; t=1717522943; a=rsa-sha256; cv=pass; b=THTP7RgsEIiogCTv/jUyyxqbzdAfSt3VM/OLmwrMnsjOQzHCSIMAIOkVB9KQ0wMN873W41 pwSSdzna8gGq4pVy1TModQdsVIYvgpT8jy+ufhvrDc95IVJCb5HqS+OnIuKNv8OlZFbGUd N8WZD1WLuWxQ/vu289oOmBlcWiUop4A= ARC-Authentication-Results: i=2; imf08.hostedemail.com; dkim=pass header.d=oracle.com header.s=corp-2023-11-20 header.b=NxXKnhXC; dkim=pass header.d=oracle.onmicrosoft.com header.s=selector2-oracle-onmicrosoft-com header.b=S27tGbpU; spf=pass (imf08.hostedemail.com: domain of sidhartha.kumar@oracle.com designates 205.220.165.32 as permitted sender) smtp.mailfrom=sidhartha.kumar@oracle.com; arc=pass ("microsoft.com:s=arcselector9901:i=1"); dmarc=pass (policy=quarantine) header.from=oracle.com ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=hostedemail.com; s=arc-20220608; t=1717522943; 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-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references:dkim-signature; bh=+orkQoZyCr3o2TgK74ExV+dlpbYMr8fB1RpcQ+RXSw0=; b=mujOV6lfZPsddqq+TgX7iO/hbGLl2K7pdH/KDieRzAtK4KfQJRGWXKjdjMCUA2q8lzgR8E ZeQ5CGoPG9sr6STT4MBpwOF5KT0b+3KsUX+aKwWYnHyA8N5b20aR8mrlqchCiSmMEKZ4Hh 6jqWbWo0uhbJ2BkJSzY3xrHoNR4MNEU= Received: from pps.filterd (m0246617.ppops.net [127.0.0.1]) by mx0b-00069f02.pphosted.com (8.17.1.19/8.17.1.19) with ESMTP id 454BnW2Y032115; Tue, 4 Jun 2024 17:42:12 GMT DKIM-Signature: =?utf-8?q?v=3D1=3B_a=3Drsa-sha256=3B_c=3Drelaxed/relaxed=3B_?= =?utf-8?q?d=3Doracle=2Ecom=3B_h=3Dcc=3Acontent-transfer-encoding=3Acontent-?= =?utf-8?q?type=3Adate=3Afrom=3Ain-reply-to=3Amessage-id=3Amime-version=3Are?= =?utf-8?q?ferences=3Asubject=3Ato=3B_s=3Dcorp-2023-11-20=3B_bh=3D+orkQoZyCr?= =?utf-8?q?3o2TgK74ExV+dlpbYMr8fB1RpcQ+RXSw0=3D=3B_b=3DNxXKnhXC3KJs+OGMWrWoJ?= =?utf-8?q?MFKOFFSSl3SbqHzdUQILRHf955+PN4wspyoeyXgsGIRFR9N_DTUoIDWi1PbAhsIBI?= =?utf-8?q?o2NwHpuMDGm8lRCTLWkNVkz/iRBo4YKmfOCIsvi+5Ahfn33gNZK_NLCHSFiDxOI+x?= =?utf-8?q?6TTxbKn5PZjTg0ji7mvVU5ciJ2qOaqChlcwAqLuGVzjVf/QOVpG8i+4_eHSe3KqcB?= =?utf-8?q?sJQHoEaQ4D0YGJ50S6vL6Uyd/1p3VRSx1mlkntoowCTf4E3lxPsO0tTWtkA_3G9Sy?= =?utf-8?q?cVfF9l4wNASfTh1S+kF/74U1FVp1iGOOYXWdeniJp1quKrCLW0HziKAAHNDCQsP_j?= =?utf-8?q?A=3D=3D_?= Received: from phxpaimrmta01.imrmtpd1.prodappphxaev1.oraclevcn.com (phxpaimrmta01.appoci.oracle.com [138.1.114.2]) by mx0b-00069f02.pphosted.com (PPS) with ESMTPS id 3yfv6u5jgh-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Tue, 04 Jun 2024 17:42:12 +0000 Received: from pps.filterd (phxpaimrmta01.imrmtpd1.prodappphxaev1.oraclevcn.com [127.0.0.1]) by phxpaimrmta01.imrmtpd1.prodappphxaev1.oraclevcn.com (8.17.1.19/8.17.1.19) with ESMTP id 454HPTRn005496; Tue, 4 Jun 2024 17:42:11 GMT Received: from nam10-mw2-obe.outbound.protection.outlook.com (mail-mw2nam10lp2041.outbound.protection.outlook.com [104.47.55.41]) by phxpaimrmta01.imrmtpd1.prodappphxaev1.oraclevcn.com (PPS) with ESMTPS id 3ygrmdwn4u-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Tue, 04 Jun 2024 17:42:11 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=AEkEINlsUInWOwV5zEyPxbQoSILhe16T7XqXCmHKh5SQUsvUejuy/YSak9GFAulmIQbSNCvgRfC24h/GHx7GxgB2C3ivHm25YNdXw41RhU6c8JD3wlUgvAAb414NMqlD5obWtxElPjQbKu4Df1YHAMOXqDT98w5GtB82mKuAaHhBug1LWngCHZqwyKXqgx7sS3pjgR4LoY+nArJPSJxz2ZDmsvKFpOuBvTxzcBaEf4u1Kc1h9lTscGHql7+QGuTiHJ44mtTroRNeNyCYpDTYYjN6rotlBogmi2EN2xMtZU7o66NT5JJSSIQT7+IVanb63PfeNYFnxz/zwqDv/ImxnA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=+orkQoZyCr3o2TgK74ExV+dlpbYMr8fB1RpcQ+RXSw0=; b=cljElUESk1qLQCtfjxMDTRINyghR2bZkvA8wAt7RBLEJmed9woSw5lJCsWdcfYsZ+zZ2vP7jZoRrdXBQ/5dmOQNbyKudDMVuNNUjXLF7IodrofDs50ljCeY+Q4hFdJ+C0BRTCNDWu0Ty+Lm0aOtRgjAwjoetN1Ak2M5eEYe0YyVNCs+Hs3Zm2gpaWuQSPOsrGce3jMprSG7xl7Ptv/IrGw6TeJbf7dHbnIVvvdz/dPwpZNaBz0/eJ1oe0qf6LRC7b7MW9zBKY6nV3mSFLMmaEKlO6fEY8J97XBpxIiaVPsoUHD1WKVkm0loWHS7OlD/ZJry9ZTZtnjClQwnuXGDTgQ== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=oracle.com; dmarc=pass action=none header.from=oracle.com; dkim=pass header.d=oracle.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=oracle.onmicrosoft.com; s=selector2-oracle-onmicrosoft-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=+orkQoZyCr3o2TgK74ExV+dlpbYMr8fB1RpcQ+RXSw0=; b=S27tGbpURJJqL9PYkETmrjysNWH+yWXt5AnY6ju87t5ajTsx2w6mryxhj8inOd2a7eDmUBEcyKrA+Dk3hiT7nJWe65pj7FJaFjgIIJyT1Ft9+9g0ex3JzRCLCMz11XCl6bmkVpu7ir78zmsNeu5QOw2j1Pcze33IMFjhNG3T0to= Received: from CH0PR10MB5113.namprd10.prod.outlook.com (2603:10b6:610:c9::8) by PH0PR10MB5893.namprd10.prod.outlook.com (2603:10b6:510:149::11) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7633.17; Tue, 4 Jun 2024 17:42:09 +0000 Received: from CH0PR10MB5113.namprd10.prod.outlook.com ([fe80::eab6:6dcc:f05f:5cb2]) by CH0PR10MB5113.namprd10.prod.outlook.com ([fe80::eab6:6dcc:f05f:5cb2%7]) with mapi id 15.20.7633.021; Tue, 4 Jun 2024 17:42:07 +0000 From: Sidhartha Kumar To: linux-kernel@vger.kernel.org, maple-tree@lists.infradead.org Cc: linux-mm@kvack.org, akpm@linux-foundation.org, liam.howlett@oracle.com, zhangpeng.00@bytedance.com, willy@infradead.org, Sidhartha Kumar Subject: [PATCH 07/18] maple_tree: use mas_store_gfp() in mas_erase() Date: Tue, 4 Jun 2024 10:41:34 -0700 Message-ID: <20240604174145.563900-8-sidhartha.kumar@oracle.com> X-Mailer: git-send-email 2.45.1 In-Reply-To: <20240604174145.563900-1-sidhartha.kumar@oracle.com> References: <20240604174145.563900-1-sidhartha.kumar@oracle.com> X-ClientProxiedBy: SJ0PR13CA0015.namprd13.prod.outlook.com (2603:10b6:a03:2c0::20) To CH0PR10MB5113.namprd10.prod.outlook.com (2603:10b6:610:c9::8) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: CH0PR10MB5113:EE_|PH0PR10MB5893:EE_ X-MS-Office365-Filtering-Correlation-Id: 50728357-e1e2-4c51-d5df-08dc84bda773 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0;ARA:13230031|376005|366007|1800799015; X-Microsoft-Antispam-Message-Info: OBrYYCebI6xF5GSuK05RpGef9AjGnFUvhmt4WxnNq6zFLlcUJWaq4PyOjL9kTBjuYXLk7oHA3K1NlN4YkG/9qwr/CWDcL9kfiXNMGQR9L3qIN5cd2FzXXsNFi3jFpt3H61FyIzTIBgSfCxxGDSksfeos/cB9npyueUcJ1GoNf8zGCUqGA5/KlRBximFOJdTAi7j13wHgyF4JrkWxxgiIlNz+9tvKq7EPgLnz0kgKFh1SoBbcb/UfbWHIfUIF+1EIURa6WhnJQwivR7pfA5z00CpsiLfG6LLTgTeSgUGP41L1ZXrb3zoAXKSKPA4imi72z2Kx1Fc4mG0/Yy/9czTv2jw46OCxqW3ibS4pF+1NnrGKGRS2hkqENB6ra7Wpcd5+k6EY2iXSuBQ1y7xcySUNR745kJdP3iGjVtN6dCQKAih2KaPQ3xFYnMh/hti3yxfZSXKYwIbFMdiqT/VRdMICM5x60kS7iBqyf9UwG1qFc7+KT8XawxtWAxYzpXiBwcEYD2lnPnSksD0M6mcLUcX6fPBKhkCrU/z7Kps/+InU/6rV+Jpr4lcCuCKRpInGZQT+rpXDWyK3veD+m+rkt3oP0LdXkAm3ahXFneqP7lIdk45q4fe8t35nNZWqra60KtAkG3YJSg+XxLFyCsOEU9jFVaRa4l6GU80xUFvAq3sVlws7uRVIZZ33ghmI4tmUYwAnWmG2DLIvhrklvIYRDJQo//EjpjDReWPjQDYfskk3BFFIFdR1qq2WtV7PMoNo/srlB+zPuSamoANgMMG5h+mwtqp1uZS874hd7YBxjGCe1rWL5cCyv3TKq0ZA5/29l6RZHgZMoqaqn8Wp8PqczikH8eM/jVJDrSmG5CmTIaSueifctlo2GZXAAoqQjk/OuQBg0/QBYK8Cx1qUA3F1k1WACjoqCPdCWwPuwDXsRh33mOKIvsJGN3CPEt06LFg14sicr8T5omu8hyqN2+8r1aWDTwRr9p5kVAZUbQ3pKi//8XU3x7jpGw4hoPx08CzTA85wFfz+N7QuUt5Doz3rsDvgMRadFeyHV24+J7dcAZOPy30x2VDA/8swMRtqUnWEVYBByF6qCD5e45k6s7vrnEXEAUb5nPqTnUFj+snkIJVyi5K0C9C9QpjIiw2/9pQj8bie1YHDLdcbtJ+dAgnRybxHrJf213CBf/6U70ksfguCrqpqvVUj3/NrjoYQLoJ+AIvDLw/fpzUzXSpd/fGF8xk1rPTlYpB5SMIi2BY2JvLa7shK/lJ2uAOJaXscw0EFYrw3RWZlxXs6EEprWv44pcU5Tww9qIqqtkO10prQpOWg9NLaJWeL+sHp8v1Bld5lPm2w X-Forefront-Antispam-Report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:CH0PR10MB5113.namprd10.prod.outlook.com;PTR:;CAT:NONE;SFS:(13230031)(376005)(366007)(1800799015);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: ZDG0Ji+r1AVodrTU5zsTS0rHjqJA+vnONnlE2yJdva/eqpqqOziwAv3zMY4L7/7CuJaU7OlThDmFJtOhrWnPGqdxggF7rph7hRcQtAgHo05ueWu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GTa1GLDfUNFT6pTQITYb10/Idp+npr8U/xNG8EjvwPbUU45pGOtLejr/smdbOkwcy7np0= X-OriginatorOrg: oracle.com X-MS-Exchange-CrossTenant-Network-Message-Id: 50728357-e1e2-4c51-d5df-08dc84bda773 X-MS-Exchange-CrossTenant-AuthSource: CH0PR10MB5113.namprd10.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 04 Jun 2024 17:42:07.4914 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 4e2c6054-71cb-48f1-bd6c-3a9705aca71b X-MS-Exchange-CrossTenant-MailboxType: HOSTED X-MS-Exchange-CrossTenant-UserPrincipalName: jM9t+DoXvOXLgppLklRBezSxZxDZwvYjaUsCtR6o4uyczbPedAKzwH75n8GSez74uBF5ntkbmYsmZ919+uqWWu9ENNJNWtgbITdXuCXrAA4= X-MS-Exchange-Transport-CrossTenantHeadersStamped: PH0PR10MB5893 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-06-04_09,2024-06-04_01,2024-05-17_01 X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 bulkscore=0 mlxscore=0 malwarescore=0 suspectscore=0 spamscore=0 mlxlogscore=999 adultscore=0 phishscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2405010000 definitions=main-2406040142 X-Proofpoint-ORIG-GUID: 4o4uQdcgftKhPeQh0lcIiwrGNsrdqlam X-Proofpoint-GUID: 4o4uQdcgftKhPeQh0lcIiwrGNsrdqlam X-Rspam-User: X-Rspamd-Server: rspam06 X-Rspamd-Queue-Id: A735C160011 X-Stat-Signature: ag3hhek7oy7i8h36pikwkk9qkkqar494 X-HE-Tag: 1717522943-870612 X-HE-Meta: U2FsdGVkX19/whWkYZbXoeEd1AoDbUNNzT3Xa88PtefGZVxV7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wxLeGlw+O1/gT5Yw8QlHCSLOvJEK2FOmwd3OOBHbSdmsyKe7X0QogMFPrmaNrBQ7aPFmL5k619F8kGHS1kONflL6iYWczkjlfwW9OZZO/RbSrClgbGGfiq32b6pfC9xHr7DSwhAuBPAmuSVFIFLiCpbF7yX/TLG3YxTotWn3hyDcM6VU7KOVDREgBJf2ttGu7B9Ta92+g7qA/DR5kqXozBuK1YvRfYIq7Cb0DRi7IwX2LnapD8VdRI5HiN0K0Yd6NnsESxEmDUaT8iWa8xufnohYNz0IJqk5Zj10DLO7K1F+sgtW9u4BUKQm4x+oitGiDNJegE5eTKlq0cybHw== 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: List-Subscribe: List-Unsubscribe: Refactor mas_erase() to simply call mas_store_gfp() which will abstract storing the null, memory allocation, and error handling. Signed-off-by: Sidhartha Kumar --- lib/maple_tree.c | 9 +-------- 1 file changed, 1 insertion(+), 8 deletions(-) diff --git a/lib/maple_tree.c b/lib/maple_tree.c index f1496817e52a..d74847045bf7 100644 --- a/lib/maple_tree.c +++ b/lib/maple_tree.c @@ -6352,7 +6352,6 @@ EXPORT_SYMBOL_GPL(mas_find_range_rev); void *mas_erase(struct ma_state *mas) { void *entry; - MA_WR_STATE(wr_mas, mas, NULL); if (!mas_is_active(mas) || !mas_is_start(mas)) mas->status = ma_start; @@ -6362,15 +6361,9 @@ void *mas_erase(struct ma_state *mas) if (!entry) return NULL; -write_retry: /* Must reset to ensure spanning writes of last slot are detected */ mas_reset(mas); - mas_wr_store_setup(&wr_mas); - mas_wr_store_entry(&wr_mas); - if (mas_nomem(mas, GFP_KERNEL)) - goto write_retry; - - mas_destroy(mas); + mas_store_gfp(mas, NULL, GFP_KERNEL); return entry; } EXPORT_SYMBOL_GPL(mas_erase);