From patchwork Fri Jun 7 18:52:47 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Sid Kumar X-Patchwork-Id: 13690654 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 0589AC27C53 for ; Fri, 7 Jun 2024 20:51:53 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id 902D26B009F; Fri, 7 Jun 2024 16:51:52 -0400 (EDT) Received: by kanga.kvack.org (Postfix, from userid 40) id 88BA86B00A2; Fri, 7 Jun 2024 16:51:52 -0400 (EDT) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id 6B73C6B00A3; Fri, 7 Jun 2024 16:51:52 -0400 (EDT) X-Delivered-To: linux-mm@kvack.org Received: from relay.hostedemail.com (smtprelay0012.hostedemail.com [216.40.44.12]) by kanga.kvack.org (Postfix) with ESMTP id 493166B00A2 for ; Fri, 7 Jun 2024 16:51:52 -0400 (EDT) Received: from smtpin18.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay01.hostedemail.com (Postfix) with ESMTP id D34261C2CF7 for ; Fri, 7 Jun 2024 20:51:51 +0000 (UTC) X-FDA: 82205289222.18.BBB84EA Received: from mx0a-00069f02.pphosted.com (mx0a-00069f02.pphosted.com [205.220.165.32]) by imf03.hostedemail.com (Postfix) with ESMTP id 75F6D20006 for ; Fri, 7 Jun 2024 20:51:48 +0000 (UTC) Authentication-Results: imf03.hostedemail.com; dkim=pass header.d=oracle.com header.s=corp-2023-11-20 header.b=HV8ItSYX; dkim=pass header.d=oracle.onmicrosoft.com header.s=selector2-oracle-onmicrosoft-com header.b=TZN2tP7W; arc=pass ("microsoft.com:s=arcselector9901:i=1"); spf=pass (imf03.hostedemail.com: domain of sidhartha.kumar@oracle.com designates 205.220.165.32 as permitted sender) smtp.mailfrom=sidhartha.kumar@oracle.com; 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=1717793508; 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=Y1M65IP1BASKGfJCkUXjq9SAHT6vlTg5aLtT5kQiY8k=; b=3hQ5EgYjrt5oCSDCLbjHJqwKIYQzwPoEm9X3XQyKXDeqdBoD7BJSCvP+fTx4B0Kc/GMOIS Mg5ZM740B27WpMbFAQoKmARKBLN8oQ/cFL6H94W+J71Apbr/6szIReKDiiwGHEXj5FF9rg aVLFaKmFXvoiY35cWaVLZi/ZyfNszio= ARC-Authentication-Results: i=2; imf03.hostedemail.com; dkim=pass header.d=oracle.com header.s=corp-2023-11-20 header.b=HV8ItSYX; dkim=pass header.d=oracle.onmicrosoft.com header.s=selector2-oracle-onmicrosoft-com header.b=TZN2tP7W; arc=pass ("microsoft.com:s=arcselector9901:i=1"); spf=pass (imf03.hostedemail.com: domain of sidhartha.kumar@oracle.com designates 205.220.165.32 as permitted sender) smtp.mailfrom=sidhartha.kumar@oracle.com; dmarc=pass (policy=quarantine) header.from=oracle.com ARC-Seal: i=2; s=arc-20220608; d=hostedemail.com; t=1717793508; a=rsa-sha256; cv=pass; b=lDgnjdXkwCft4ptTQ4/hGNAMduR0FVQiQrjQsoWQFjiwevUc5f9aIdeEw6Cj4IGbIJZbeU d/+yJosB+WMpf9Ydxu3SLcQcq8dBv1HDcuF6umN/UU2yL62xER7llCKIO1v7/3vrTQEc7S +l/G9aH4Np1fEA/nlgMzbFjmPWHqkKA= 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 457Cup2Z021557; Fri, 7 Jun 2024 18:53:41 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=oracle.com; h=cc : content-transfer-encoding : content-type : date : from : in-reply-to : message-id : mime-version : references : subject : to; s=corp-2023-11-20; bh=Y1M65IP1BASKGfJCkUXjq9SAHT6vlTg5aLtT5kQiY8k=; b=HV8ItSYX1CsD29a74PaiN6WWHOHfktWkwivG3ptmkhvpNWKwSa5eSN7GhkG6DZbMGRQG Gudczw3BvpKjr6jI3aZolgIqYWWogCdFE3eB9n7TynbPGLR7tmnGbyxWLUBvjg+yCUv7 B1RZ3eN+UAs0C7j6v8/OERBwEsVewjtWZjEq9/vM5Hq52qRXmzEskLhqxpknQ/KRKKA7 Z717aJff5KmxraHCAcXTVX/gJ4Kx7UvEMgFACPz0BZWxOR4npZMQGUOMEreqnhN2hi+i 3pFAzzWO4fhSeJcGJGWIEREpmjj//wBZUNzVqGM+F2uu9EXqHQ5J+92loGx5Ql9gr7k4 aA== Received: from iadpaimrmta03.imrmtpd1.prodappiadaev1.oraclevcn.com (iadpaimrmta03.appoci.oracle.com [130.35.103.27]) by mx0b-00069f02.pphosted.com (PPS) with ESMTPS id 3yjbrhea3v-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Fri, 07 Jun 2024 18:53:41 +0000 Received: from pps.filterd (iadpaimrmta03.imrmtpd1.prodappiadaev1.oraclevcn.com [127.0.0.1]) by iadpaimrmta03.imrmtpd1.prodappiadaev1.oraclevcn.com (8.17.1.19/8.17.1.19) with ESMTP id 457ICR4D023938; Fri, 7 Jun 2024 18:53:40 GMT Received: from nam11-dm6-obe.outbound.protection.outlook.com (mail-dm6nam11lp2169.outbound.protection.outlook.com [104.47.57.169]) by iadpaimrmta03.imrmtpd1.prodappiadaev1.oraclevcn.com (PPS) with ESMTPS id 3ygrr2k7tv-3 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Fri, 07 Jun 2024 18:53:40 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=heNk/O28P1uBf9zXkPFaquniW6CZY2gCQ8Ek6hqD6OyG75ezpe/kpYJsz5oUiRvzPu5fttm9Thkh2es+qgep0zyvzK9NSOg5K7JXPInL3ivCMu4H1G04/3p5j3cbtroHxV05ahD2z/WH4RaQoYP5ssu31BsJcM6eqENVm+Rxm/XeWAyTQ5E+z2Rgc3gAyGoceOUsBdCnRCwojW4XwPDF9rg66oCDS9k/l7IC0/kR+hA+5/iW2HIzSqKzgRyLUjS6DeE8qLs6hgMFqtI/NJ2n3/7oAEgYvH6rFEYWaAWqfga6PqU7hHO/pJxQIdtT3Y46HB4Svlq36erax06/GP9vIQ== 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=Y1M65IP1BASKGfJCkUXjq9SAHT6vlTg5aLtT5kQiY8k=; b=high2Cmsq7P4pOxaFERzstwtmAhnnWUlkWKjwIXRBaowelyHC20kg4UYzgrQc4x8W6LYxvaK595lObaK2b2q6l12nEao5rOYXEo7sZ8wVU66SepzrYWpGZ52OkOmFtxEH/ZXBu54JKgzx9gIiHZy2KN7fBCi0dbKc8to4WOQmaGyHNQA1iGTWXFRYhyhSiuEDn9B/5z2oPRLggzQ8a8Ll3SFIDdpG+PrR4phgzdff+pX87RlXFZnLjVUS7ZQRAMvBO736vbT76OxBysjvhLklDSkYmkkbceghw43EpnHUz/v/ELSFMZLDRmvu4CjzKn5o4NIq7IWN3pzIqatcFwXWw== 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=Y1M65IP1BASKGfJCkUXjq9SAHT6vlTg5aLtT5kQiY8k=; b=TZN2tP7W0g9NYZJ8baVELdDf2LVSZ2Gbc7WueqMYRNzhlYJXpZXUzcDiJqbCXgmj5PlERT5plMfIxL/kfeD9pSy4KwDEX5ENE9Uf+5bFl16+U5vnlLMHDYUp9qMkuchGnXmYKcJXTP+meROUK9RXfqtlB/dlMMqYff1TeZlD6xM= Received: from CH0PR10MB5113.namprd10.prod.outlook.com (2603:10b6:610:c9::8) by SJ0PR10MB5629.namprd10.prod.outlook.com (2603:10b6:a03:3e2::17) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7633.26; Fri, 7 Jun 2024 18:53:17 +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.034; Fri, 7 Jun 2024 18:53:17 +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, willy@infradead.org, Sidhartha Kumar Subject: [PATCH v2 06/16] maple_tree: use mas_store_gfp() in mas_erase() Date: Fri, 7 Jun 2024 11:52:47 -0700 Message-ID: <20240607185257.963768-7-sidhartha.kumar@oracle.com> X-Mailer: git-send-email 2.45.2 In-Reply-To: <20240607185257.963768-1-sidhartha.kumar@oracle.com> References: <20240607185257.963768-1-sidhartha.kumar@oracle.com> X-ClientProxiedBy: BLAPR05CA0048.namprd05.prod.outlook.com (2603:10b6:208:335::29) To CH0PR10MB5113.namprd10.prod.outlook.com (2603:10b6:610:c9::8) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: CH0PR10MB5113:EE_|SJ0PR10MB5629:EE_ X-MS-Office365-Filtering-Correlation-Id: 72e4e354-690c-45fb-57fd-08dc872317da 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: HE3tENAAmn1+qEkwRNB6Js10OMc5GmQO65xfQ5xjmC1mBt/MleQwWsxKMKau0tEt9ITHOzv9guIQkDkh9iHNesTVNcO+zbxugCESQlXPZl5Lw4Kbn5Vyoli1hhjsWES4PPcyBuu0s5+qgBP9/cWN4UJtTcmExPUcLTcxiRFdWuAa4GM4u4x52QpVUdNlxiq5DelmlQjkU5cKW2iL1OsuxZu/QJWpT9srgcbz2Lb3gqTg6rvQPiqVsc5TkmKkFmtKACREz0a47r/dfQVIWWJWZaEjxELqtBKO/ieAoDXHjiZ7XYOtixghzEyEslhd76yIPT1XKwA38EhE6ZXDPe5Mmzrudkw7R5mHDddqbgSKidH3KHpGWbjJUZAKLNtWmv1p3Z/SMyvsm9uDAr6V78HMGQaSNf6eE6lqeql+D9OTWeYcx5zw9y8Wl31szHDYQAdTcBxg2DtoPOJF5u5dQrU/zfJSWwN1HiqOig1rBZrspY6w0tzkYH5rwtx1dQRvuK1Zp6DEyWx46x/aRn1R57tDv76VAykeuZPSlbciYa0R8WaGRvtHpiCQ6erkDPFFhn7ukhqODO76m4G8wg48TRvZ9NZaVItK65k/zgVxXaRnJzJiURBNKeRfAMaBr26Y0vgpBB/1pt/TBDVr5nHsZe8odFkjLPf+97yyFq9DG0QblnaFFrOtOMR6u4WUHQILTKjodDZj4zSaqM/VizENBJZ7+T7EX8EdNZBWpiy+lXcNVLFk+t/EMhZsKttN2rhEe5gRdt/ypNz09gUEhGtXpAgBVNE2dDxjGqrw+wbpW/2rCfyjlQFKXd4ZhFv5FaRvllk1cEe4Lkwe1l25HPKwATNh6rkvhpXuUkx4dta5WuEDF5o1ksiRe40mcmAMQHMlSrUjcdjeA/8x87mkgwkNYQyKonS8f0JkLN7fVve/odNX3WPyOTKyE3h6g9uC87n+XquIuyeInKrtcUgF9MHwS0bKlM9cQrZcgYKXDAV7bpWCfjN8FfCh5hoOlOCp9M7pRVVBCZ8SEPGp80GpJF5lgS+abAMcpK+KIFeHjnxa3hEhuecGZwSQQpc6j07gxK2afhaHTzZzxnDXyDfO8FZSjggDP4wL84wSZomNIkp+6aTotKynAnhBeIOJB9QFAmPOzSSAsvdsznng8e73VSPMCiNm3wXKU7kXyGZ898HjaiQ4dvFFgTCrHMjm9oogvo42sc5p/QCQwKTuLam2XQZAbe2tsSWzW9i6r51vRFzh4LKtWf8bk8xcVTHn7645PKFH410KogrvdfIg4noIj6BRSsIeGCKyXNISNJUC7F4o17H0IFzpgppuLn3qDicMB3cqrOJx 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: 4Q/WtvBt25+8sYOL+1kU2xfvBTuHIgZEEry+5QRhQAoXs+6xW46xamjMnEtXragCTBjXtx61Aj4f+iX89Q/WNloXHIiiLL2skjswLsbxeTfaHfQ/v0CD1fw9Z16JYNN0zM4vW9vtWc4wlEi15e+qjWDWcFya7zBk/0/WKI6q2eMCNuz/7x1SV7UZK0NPLLpxuzVficVq/YmEoUU2NIHInU+jzZ0gF81/0T4B1tdMNBDMBAmhEB/tVeXv28dQZrpdgrOJxauL5fm7kKlMA5qWdFmxOQmjUsqLl3+QdEkMyl1/p++ZV6GjkDRM7PsDYBCeh4Tc7tABktkJggXEv0bJ0pzIkh4ZtS1a166baaCv8Ip2wBKlj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E9mLjVj0JSlqU8WwaAIPUBoLd3ra3JfUwhRnEXU54/gJ+suRfteJsg6ZIY9SmMaUYZegCwUUKDBHgClVFLOMM4xpX/KXim/tBw+a4pXf6hMtz9gtbB8WX8VUTF20iGPpoAdfYIrOVI7uZxOHyC2b8u/QZ+V/ZzXJSXg3+vNfJHG7yOV+kTELkAzPUzzPWw3q4GZHA0I3mI= X-MS-Exchange-AntiSpam-ExternalHop-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-ExternalHop-MessageData-0: SupnHJN8XovT8aevg6CtORIVq6UI8BGrWOogkb+gI3mYDi/L63oiEn5bTYJcZIjfZLnEnQOFlfKk0UMQJEiz4uh/HNjYq63SCRGYBDCzzUQe6O6bt1LuspXxe3fDjjhs1+v9gCX+mvPGDBU1T9oLeHpDngyeZR2UVJPb/5fJnzxOn1Bs7tXPTvwcTTnQ4T6shs2KSvRfvDjA6TatQTcPbGVrCkTXeJ6ESnFSach6jlO0+L0Undh0wt9IqIuGRSMR9iM/ibgfu4uLPobUQ2DMTeDuaNzTx2w8MiwYH1R4CsO80AigzzyIy/g0pUhkQPjivDKSk/2DB9AK/oFOZ8hgOupyB4r9nNXo1OCgik8Z987EutgDYR+L2lGWyWaJNWhPcZnR4T0OuENKi+iFFUNkav8mHqiqxGsP9N+90CC8wVGqqgQQAbF+l61gw+ouqSQ0+sHdC1DxWwOHSWZ0crx8atg+CMAI7XBPGmZPqyeRUnx0eLLHbQj6BESjAVt948/KKqomQVvLV8a/d4fW7ANvqCkfkKW2wtc9UXsRo4PRtkI61VeizJ42Ic8YvGsjU8KQ4xuSD7d2WPF8i9GB337eWNK+RspQFuL4Q7jptDyiuMI= X-OriginatorOrg: oracle.com X-MS-Exchange-CrossTenant-Network-Message-Id: 72e4e354-690c-45fb-57fd-08dc872317da X-MS-Exchange-CrossTenant-AuthSource: CH0PR10MB5113.namprd10.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 07 Jun 2024 18:53:17.4782 (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: JWAqyV7sJesNhJ3cfhylTLCj6S3OjfWr7RAX2mujhppD52m8iEuXQCf7rbyeBAQIdDVGV0ckQerVAvKjf+hF31KCafg1yYroUStObMajZe4= X-MS-Exchange-Transport-CrossTenantHeadersStamped: SJ0PR10MB5629 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-07_11,2024-06-06_02,2024-05-17_01 X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 mlxscore=0 malwarescore=0 adultscore=0 phishscore=0 suspectscore=0 bulkscore=0 spamscore=0 mlxlogscore=999 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2405010000 definitions=main-2406070138 X-Proofpoint-GUID: mbuKiPBfaMo9MmfXx1yh6M2n3yqskt_u X-Proofpoint-ORIG-GUID: mbuKiPBfaMo9MmfXx1yh6M2n3yqskt_u X-Rspamd-Server: rspam05 X-Rspamd-Queue-Id: 75F6D20006 X-Stat-Signature: ueegtjiabmk9phduwsqqjti6wh63ra1r X-Rspam-User: X-HE-Tag: 1717793508-360901 X-HE-Meta: U2FsdGVkX1/RaIQkVOS8j539bEcI/uNM0zG6CbPJgwdmWLJOyADYHII+l61lDx6vTK887J2jEBM3W1AAk7KLfJWfqeOEZuasyc9T3gud8VgWYQMfkrRsHDqZsIaLdViENFZfPAtKh6J9WUlFgEWPwY7l9sWsEsCZYJXLxs1G55HeO5QqnD2GfUBUqY9Zj7PL5lgp0iiN6ll0oUhTXmSFsXHYjA7jfKQdzXoNu7E8+fdNq6+/78LxZ2YNc8QS1pUc0oKagUOFxjZ/arFdC7bCcbZ87kLmbN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DJpo0XA6mVkLz/74OabBkJG0AEIiUf2etI5VZESB3frDtzf+tE9ZDQ1fqC8LnDRJhm7nsZ2VMYVTt827ZFSzRrsuu9Q== 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 b933df290887..bf309b7515e7 100644 --- a/lib/maple_tree.c +++ b/lib/maple_tree.c @@ -6355,7 +6355,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; @@ -6365,15 +6364,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);