From patchwork Tue Jun 18 20:47:40 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Sidhartha Kumar X-Patchwork-Id: 13703023 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 447ADC2BA15 for ; Tue, 18 Jun 2024 20:48:48 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id 9E8FD8D0054; Tue, 18 Jun 2024 16:48:43 -0400 (EDT) Received: by kanga.kvack.org (Postfix, from userid 40) id 9507F8D0055; Tue, 18 Jun 2024 16:48:43 -0400 (EDT) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id 6EAF68D0054; Tue, 18 Jun 2024 16:48:43 -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 4E8BE8D002C for ; Tue, 18 Jun 2024 16:48:43 -0400 (EDT) Received: from smtpin09.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay06.hostedemail.com (Postfix) with ESMTP id 07FEFA2237 for ; Tue, 18 Jun 2024 20:48:43 +0000 (UTC) X-FDA: 82245198126.09.840BF3D Received: from mx0b-00069f02.pphosted.com (mx0b-00069f02.pphosted.com [205.220.177.32]) by imf09.hostedemail.com (Postfix) with ESMTP id B1BE5140020 for ; Tue, 18 Jun 2024 20:48:39 +0000 (UTC) Authentication-Results: imf09.hostedemail.com; dkim=pass header.d=oracle.com header.s=corp-2023-11-20 header.b=QIprdqC3; dkim=pass header.d=oracle.onmicrosoft.com header.s=selector2-oracle-onmicrosoft-com header.b=bCqKYgR6; spf=pass (imf09.hostedemail.com: domain of sidhartha.kumar@oracle.com designates 205.220.177.32 as permitted sender) smtp.mailfrom=sidhartha.kumar@oracle.com; dmarc=pass (policy=reject) header.from=oracle.com; arc=pass ("microsoft.com:s=arcselector9901:i=1") ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=hostedemail.com; s=arc-20220608; t=1718743716; 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=zz6qNIKltTmXoHlX1g+R7AWUOp4OUnndefvednj8JZw=; b=uJXlODDYTkyO/CA+Vm5ST8gZ0DCfD+rYlqmEPolS3adX7Q99HWWkidHXELXYaBONkvAu7B bTevyx2BHpHKNhPLqkg15aw6WCF2lPfZWFvNa/IufgmUXzpOmGqGBOJIZ/FsC7nCBej0cN kAOPP6TgpWZWrO58L4CnLyfivlkuM3M= ARC-Authentication-Results: i=2; imf09.hostedemail.com; dkim=pass header.d=oracle.com header.s=corp-2023-11-20 header.b=QIprdqC3; dkim=pass header.d=oracle.onmicrosoft.com header.s=selector2-oracle-onmicrosoft-com header.b=bCqKYgR6; spf=pass (imf09.hostedemail.com: domain of sidhartha.kumar@oracle.com designates 205.220.177.32 as permitted sender) smtp.mailfrom=sidhartha.kumar@oracle.com; dmarc=pass (policy=reject) header.from=oracle.com; arc=pass ("microsoft.com:s=arcselector9901:i=1") ARC-Seal: i=2; s=arc-20220608; d=hostedemail.com; t=1718743716; a=rsa-sha256; cv=pass; b=FbpbvSdCnkRbuyLFBNv8zcDoPmYLOYlPqv3vEeAk60uR3RyGl5QVOBZ+D5UAVI12ED0x+S lpYmEmQlgn+utz4fH4VRG/ODlI9m21OVoxHgvCSWV3SH757VAbeUHGawgp+EJWrGllpwL+ DyYnRCgSTMrJKUwdi4zDLCXTEck4OWU= Received: from pps.filterd (m0246632.ppops.net [127.0.0.1]) by mx0b-00069f02.pphosted.com (8.18.1.2/8.18.1.2) with ESMTP id 45IIUxvU029821; Tue, 18 Jun 2024 20:48:32 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 :content-transfer-encoding:content-type:mime-version; s= corp-2023-11-20; bh=zz6qNIKltTmXoHlX1g+R7AWUOp4OUnndefvednj8JZw=; b= QIprdqC3ja7oPgvSHDnTQJqt4sN4HVZPf77noJMVjv16C0J6pvDCCsQ+imyTS/XU bXBw2Le8I6//bepOgTkoElCBa5s8bQkegvfbQG+O80OF6VOwS1Sx0pnCn4cTQMES jclzu4RQs/scPGgAgQrHBGiyS7bmt4PjP6rsWTti3zXSwsrgXSJhQ6t3bdKTaaGF jQdnKKMXelOXbBMB2VuSs59ChjDa+AbkY261T9WWieB7Foowz8CZlJg5Hcsv6Xma 9tqFwEP1poLahyeyCGYVhYZbX1Wm5pc0mHZiDxKScI39NGr0qT3AVPjrLZaucNv0 3pWBZQqpEKBBKIoW//Xt/g== Received: from iadpaimrmta01.imrmtpd1.prodappiadaev1.oraclevcn.com (iadpaimrmta01.appoci.oracle.com [130.35.100.223]) by mx0b-00069f02.pphosted.com (PPS) with ESMTPS id 3ys2js5tnn-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Tue, 18 Jun 2024 20:48:31 +0000 (GMT) Received: from pps.filterd (iadpaimrmta01.imrmtpd1.prodappiadaev1.oraclevcn.com [127.0.0.1]) by iadpaimrmta01.imrmtpd1.prodappiadaev1.oraclevcn.com (8.17.1.19/8.17.1.19) with ESMTP id 45IK8ThE015724; Tue, 18 Jun 2024 20:48:31 GMT Received: from nam11-dm6-obe.outbound.protection.outlook.com (mail-dm6nam11lp2169.outbound.protection.outlook.com [104.47.57.169]) by iadpaimrmta01.imrmtpd1.prodappiadaev1.oraclevcn.com (PPS) with ESMTPS id 3ys1deqw7y-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Tue, 18 Jun 2024 20:48:30 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=Cdy4NUtHl+KKtlGxY5jnf+E62xpkjwA3s6M9MW14FieOs9jugK4QrVqB3UM2HuIqCbTC5AICU9Keotp65kpXTdZwaYBtQvBIheAGLJJiqPeWGfLskDL4Z3wVlUwEdxRWHiMoQ/csE5HJJE0xch9N9be0R84o10Y/v1a6CHKQrJNUECha2QYCCg/GqEhC8hkLT7s4MQSPhkw32P+E71HI696yc9D6GMfTyNaS0aJ/tefp00oL4D0BqROFerGzXB58ErCxPYrPwFg/HP7WUmKsJTI5mHucbw40fa75imAY6LJZFKVVIDFYf9h8Xhob9FdCloazlVTTssde1tOvCfDR+A== 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=zz6qNIKltTmXoHlX1g+R7AWUOp4OUnndefvednj8JZw=; b=Q9Io7N7s1K3F4v6IgvimS9h5PjU1pvQ9FlAjydvYuNFj1sU21+RzcvvhIC/r+3+q22NRZ6dc3AaoyMlGz4+uQZu6kE7+CrEPU13+O+2WnWbjZGejG97REVUDJFNUhK4hcd+P9xiomTBbW2YE3tUQrypuHY+Iew2W74joQ3EynSXI5zfgVhoCvS46SqmbTvcQh8UaY70/3ybjin5xwfmM/yY/+ntEYf3scuWl5+kcdOFr+DggM8yU7EeajZC5TFK/JYIP6SwU37j0EYT6kxmZGjthlVP/mZLJNQYEyOxI+QdUJ5A4oJrpKC4q0WdekpF/lSMGHTqgqsmFsklPt6szPA== 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=zz6qNIKltTmXoHlX1g+R7AWUOp4OUnndefvednj8JZw=; b=bCqKYgR6fXEHRoS0NJ1WbVJTgNTj+qOoO/33bukAgcdT9m8N+2Qm4c9L4TSEhZqEl6G6Pzs7KQ70zDn5p20mtPh8HXrSkvuoefFN2giuQjYILIU0/IIUEJKI1UP8b/UNo4bViONJO+0BC4qS5qRQ5yCYKiFMrKSx4bFwc+Cv+2s= Received: from CH0PR10MB5113.namprd10.prod.outlook.com (2603:10b6:610:c9::8) by CY8PR10MB6465.namprd10.prod.outlook.com (2603:10b6:930:63::17) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7677.30; Tue, 18 Jun 2024 20:48:11 +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.7677.030; Tue, 18 Jun 2024 20:48:11 +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 v3 06/16] maple_tree: use mas_store_gfp() in mas_erase() Date: Tue, 18 Jun 2024 13:47:40 -0700 Message-ID: <20240618204750.79512-7-sidhartha.kumar@oracle.com> X-Mailer: git-send-email 2.45.2 In-Reply-To: <20240618204750.79512-1-sidhartha.kumar@oracle.com> References: <20240618204750.79512-1-sidhartha.kumar@oracle.com> X-ClientProxiedBy: SJ0PR03CA0152.namprd03.prod.outlook.com (2603:10b6:a03:338::7) To CH0PR10MB5113.namprd10.prod.outlook.com (2603:10b6:610:c9::8) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: CH0PR10MB5113:EE_|CY8PR10MB6465:EE_ X-MS-Office365-Filtering-Correlation-Id: 8b636b10-6182-4595-490b-08dc8fd7f788 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0;ARA:13230037|366013|376011|1800799021; X-Microsoft-Antispam-Message-Info: 1T9mGsxxKx0ljwTtLyNeniKZsg4pbbIkMSAu3ew+K1bColtmxtkLUr6eYsY+wqPf5kB1RcRkMjN8SgKqkedq4PyVBBHRTg+0qFiK5OWNDHGDYL936Xjy6Z0jfnF418CouJAncWq3+t/yMoUjefP9A/lOMwyeijkLFzsT3dpoTb1VEL+/sA9cUy8+LeBjGmnQ7dOk6ZWRwQGirDeur8/Nw7oyILt2Wwehslaw76qaYV3O3Wxef0qBftZ5NktwqJX9cHZzZr0WSMVUS0ldzYCQADcSZwya3RPhLUN5XHk1Yjf5jGSTxjQdI2RLzP3Fd3z7eMEKlAcW7teN7RKVHBvDphplF9Lu6RToQoajJuTDv6v6XTFU++FshgjvFPksExY7zdM4j/pPmtQntRQrlMI1wn8BU8Dt37XCvUHwA138cmT4U5A6iCqJvXnt2N2w1amPcAD2T/SiVJjgx/iPJha6J4oYZmyG9KEOdaWLKlzjxIqFe+k6YL32VzHxbMBke30NrPA2LA1ND5/K6CVCpMwMsjE+284PFXZlFxfc2qjloEfxZgY1TntymBoEzaOy0FqT3mUCqA7N4KB1yY868hxhnn5i6HKI+7i8VEaJK8XPZXHAoL2QdcOk+D3ndDdysSgKCXJplB3rg66jXbXIdfGwcGZ9cmINASqZKHOy+wKVf+zvW5vqMjl8/VJgaA7uSORnrdeuPYb5b8yvqa0BHCwF4kEvawKgVFzb6yF7r0cXkjIQesKJ60YfaE4K9XZARfL2rg5nxJKPW4ZIY+X8686ZA2TRTImcYJi+EcMR9EVVxmrcb+MCzvRCamYz7VmyVbqNfOeRG3gj2TmmrzhoqqlCwTcN/hCanfR+3GOjLN3pmDi6bPw1Pz38brQo0nXNWH/yRwdcpTN8L59hD3oKB+iXAeOvcIh12+dHdCgBXWa9vD+ptJysRSk5uvpXs5r/OyapOb+8RTNrAyiWDg/1i5W72/dyDfaIHEkfR99F4uwkXjLFfft8dbITm8DdfRQ5li7MqaNDGLJULUzfWrO5Cju1ZnRDlG/jmGiM05LLlp5he+pK+cDvFcAJwq2n+F15MWKXpLV9tYTxICXJqC/zxo0wNed9BP5Vk6dt0+nSMBW+Agfar4Hetv9hD1R8mMrMB9KneBo8FylTgFFCaV6RGMZpKzG1NurCc9/QjwU/wakzWaXwZu6u7KuKZiUaSAIYEAkpWCcj8FOgQTJoHN9t/agJd4mF6/bSMWKSFbYgcsh7O12zdNJ+i720QCnSQoBjxCjqW24PrjrYkmYxt9eJwr0Odr770rR+E5m6LQfyt9Fo/ZuA1hzuqfi8HghBVn09Bkci 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:(13230037)(366013)(376011)(1800799021);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: b/8AI9x6f8bFmdw7sfyR3D4StMx/NiwrgceDGhFmG5fcwLEtkg5VCq9q2dHWzKInXsEoq0yQXFhTMnRyrCV7qm8WogSWQZ8l6617TsQr2NKEU+vGiLEWGbJKE0MnhewPA8CPzAv3LNFLH2LHgLprpaA7ce0FQ3/LEov/FKLDNFDMHlaxGNLwSJcJSWaufTta7g79TqWA2wmj8vn5kFgypsmoRkyW+qGmVx3CgrdwJp3vTsyosVxrRooOAhQlboGhwGAdP7mEwgxJI+lE5jvCahcqlXVcGkcYbB/blY+9yjFpSdikJAwaYrCUE0kl0MPhBKDOPR/OE08WiU+s3U1DS2y3sy5qWnfqF/PWJluDfoLlztyQIcRZwN5EVifAjKXfSNm6wfTGI72jnQ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SH5fgQXptfto0pIP3PGYSC7eb2cIROmfuIpbT6HUH2CshVnGjSE0QG2odndgQtTcZIqP1+Ze8BO9W4V7hujB2eyvsgEOlrDUrf2ZNKdR7ZroBAQI7fa563w5YHgn2Mu5KjiOWarV4DKBel3pexDhJ9c+T+dXZsLtzZtiJnMIeCaAo= X-MS-Exchange-AntiSpam-ExternalHop-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-ExternalHop-MessageData-0: Yuv87YVzbQ9mVwC+QzN3b8S9rJqLpv+K4szIRNj8EFYfI3gd8Do6S4mUHk7HjF68OyOdfqO9DiHQ5yiUhZ+bUcYntzk1kImboXCPCIvpwszao3230TDJAsb/u3GEYKp21+7tPiBysGMnUJff0JJ/vu1pKc3q66RK54sUJAsyk7aut4u5U2Qkem0cSyp5uagy5Zyx+Rc41x615QyLs8C1DzrLxXwyC8yHNCF8g2JKNQnR/zGK1wrbXnsZu2KW5Abkk2OdVgYLB+rPzu7PJXK7lN6tWL8s4pNgb/UZLxzbXcEOnqKfShnzIklpwePkS28SeZJA7X5u8q7UPDORd2odAy/TOElq/g6uknmZKTveGxCwCUaY8irDjFCt58z705CwRPPNL3HOzQABHYgRRHTESS0vgerWs0lW+6y8biVrlMwlp4PkNW8yMf+Ez/VKCxDecRezPxocULY8kSUiFbz50H1VxzViPjUSq0M4qx3A/OVDhoJ27IB7ZaX9hjNktqHmLp4oa1prV2RNdd2PUNI6jLSeFjOSRli2gaeSjN0v4w7npLclagm+xTLgnN+DBsQFvpQEEPtHjCp19fBYIvhpNKaFtI8emjh4MPuwrIOehiY= X-OriginatorOrg: oracle.com X-MS-Exchange-CrossTenant-Network-Message-Id: 8b636b10-6182-4595-490b-08dc8fd7f788 X-MS-Exchange-CrossTenant-AuthSource: CH0PR10MB5113.namprd10.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 18 Jun 2024 20:48:11.4772 (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: /FE2Fm7oq+9SLTvy3zke/lHiOwjR1E8DmUb80rtwFm8k9+1fy+W4F09QbOR/lrx82oPToezA/VdFev4erzHH8DccFfQyNACNRQeTczust5A= X-MS-Exchange-Transport-CrossTenantHeadersStamped: CY8PR10MB6465 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-18_04,2024-06-17_01,2024-05-17_01 X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 bulkscore=0 suspectscore=0 spamscore=0 adultscore=0 mlxlogscore=999 phishscore=0 mlxscore=0 malwarescore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2405010000 definitions=main-2406180153 X-Proofpoint-ORIG-GUID: RSST5i-5mF5kriKklRVucoqOxjPGZMa4 X-Proofpoint-GUID: RSST5i-5mF5kriKklRVucoqOxjPGZMa4 X-Rspamd-Server: rspam03 X-Rspam-User: X-Rspamd-Queue-Id: B1BE5140020 X-Stat-Signature: ufwk79c9kqqdn3u73194p8s4uyr1z4tu X-HE-Tag: 1718743719-221155 X-HE-Meta: U2FsdGVkX1+4QL14DGfD167BAiBpBik7iSvKS5BeA79RdnjdC9b+ZE6JohZk9wDNux7nSD2xn+uplk2hOVHQSEnn6NG5OxE+nFVx5iiPu5NZZUNHSYumNxpL5cEAQkE178kEhYxQjdpKxDGNkgma0laATscApsOIPHHUTmdvLXN+reXAtor5tdfSRcg+JnJ3p+mVBvez2lbTWS4Hz8uAqPa0/UEdEbpwifeReJVDf0AXSM7+ZHzmBpf2xt9j250km7vKK+UNtac6LAbSHWR38OjSoXMqKVw5iaZwu7AMOd6UtRk+57HfRyCMTKKVI4uB07TUDnEHDJS+9HsY90dOxrgFMIRdx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bdUYFUjVVwVRKMp6oFcD3gc5vH+99SzR0+QvFtiMnQ== 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 648cd003b99a..892e864d4c9f 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);