From patchwork Tue Jun 4 17:41:44 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Sid Kumar X-Patchwork-Id: 13685739 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 12382C27C53 for ; Tue, 4 Jun 2024 17:43:02 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id 4A6866B00AF; Tue, 4 Jun 2024 13:42:46 -0400 (EDT) Received: by kanga.kvack.org (Postfix, from userid 40) id 3DF026B00B0; Tue, 4 Jun 2024 13:42:46 -0400 (EDT) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id 20F446B00B1; Tue, 4 Jun 2024 13:42:46 -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 F2D726B00AF for ; Tue, 4 Jun 2024 13:42:45 -0400 (EDT) Received: from smtpin26.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay05.hostedemail.com (Postfix) with ESMTP id B650F40EC9 for ; Tue, 4 Jun 2024 17:42:45 +0000 (UTC) X-FDA: 82193926290.26.20A4638 Received: from mx0b-00069f02.pphosted.com (mx0b-00069f02.pphosted.com [205.220.177.32]) by imf30.hostedemail.com (Postfix) with ESMTP id 0F71C80012 for ; Tue, 4 Jun 2024 17:42:41 +0000 (UTC) Authentication-Results: imf30.hostedemail.com; dkim=pass header.d=oracle.com header.s=corp-2023-11-20 header.b=NeAlU3Kg; dkim=pass header.d=oracle.onmicrosoft.com header.s=selector2-oracle-onmicrosoft-com header.b=nDu2E6Dw; spf=pass (imf30.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=quarantine) 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=1717522962; 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=5zvCRKl+U2ByYXCU/OBlf+JIMmoEO64HTB1VnCJPdP4=; b=ERfS2XlWDsKRkG2xTxGAGn21qLl+iWAl7b/U4q9h+6p5DfIC1K6+zUrdulrdv7MX11BYF5 3sWj1Y9c3HP2XNJDUuvlDtfOB0GBCueTly6WgXSnbaH8bnp58WvDT7LInzPvnEipCInQQu Z+E3i9YO8RZo6w/pCv/5K/DCGDyb+as= ARC-Seal: i=2; s=arc-20220608; d=hostedemail.com; t=1717522962; a=rsa-sha256; cv=pass; b=wppEoTLw9aypb3s/DMkuzRPEWMey4yM9wLlo1K/6yIznALnI8dWsXygPO71Q4HHU2taM/Y i3khvtUyVtfkek9k9GJo7V0yHqaeZUk0fgkHVD/t2BKe796E8Yhfgc/i0PbZ+tXVPQLbND DdUGdW/8mucfa8kdQEhn0ftflG433Qk= ARC-Authentication-Results: i=2; imf30.hostedemail.com; dkim=pass header.d=oracle.com header.s=corp-2023-11-20 header.b=NeAlU3Kg; dkim=pass header.d=oracle.onmicrosoft.com header.s=selector2-oracle-onmicrosoft-com header.b=nDu2E6Dw; spf=pass (imf30.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=quarantine) header.from=oracle.com; arc=pass ("microsoft.com:s=arcselector9901:i=1") Received: from pps.filterd (m0246632.ppops.net [127.0.0.1]) by mx0b-00069f02.pphosted.com (8.17.1.19/8.17.1.19) with ESMTP id 454Bn1i7032558; Tue, 4 Jun 2024 17:42:31 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=3D5zvCRKl+U2?= =?utf-8?q?ByYXCU/OBlf+JIMmoEO64HTB1VnCJPdP4=3D=3B_b=3DNeAlU3KggAcL7oCzb245s?= =?utf-8?q?3ruw61z046ZZMuyQ/lQDOJXFKaTI91aeu9e/uF5/31jUcvZ_fas4l+XakfEzWdnxC?= =?utf-8?q?+m9KUtIWalDTllZASHb3MKzFXEwhonHCZe97AHM5FA3iXZlpsjx_hM4CEcgNs2Cae?= =?utf-8?q?MbqJoTMVTgvMBig322enjM7QXtGEo5wqFiiQmmhNbX67Ypvictb2G6P_PComKxGm7?= =?utf-8?q?KJvo0IZYPd8aFVeQgXNczB8cz5C0ozXB4veh8ByRm0OeLcoww+yazKGok7o_qyUy7?= =?utf-8?q?nXFLEePRS9n6qYIN2D1MSBU5b1mQD7k9DSqdmn0HtKgsy8DTyn9Lz8mAx0xL+/p_3?= =?utf-8?q?A=3D=3D_?= Received: from phxpaimrmta02.imrmtpd1.prodappphxaev1.oraclevcn.com (phxpaimrmta02.appoci.oracle.com [147.154.114.232]) by mx0b-00069f02.pphosted.com (PPS) with ESMTPS id 3yfuyu5j6y-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Tue, 04 Jun 2024 17:42:31 +0000 Received: from pps.filterd (phxpaimrmta02.imrmtpd1.prodappphxaev1.oraclevcn.com [127.0.0.1]) by phxpaimrmta02.imrmtpd1.prodappphxaev1.oraclevcn.com (8.17.1.19/8.17.1.19) with ESMTP id 454HRBZL015719; Tue, 4 Jun 2024 17:42:30 GMT Received: from nam11-bn8-obe.outbound.protection.outlook.com (mail-bn8nam11lp2175.outbound.protection.outlook.com [104.47.58.175]) by phxpaimrmta02.imrmtpd1.prodappphxaev1.oraclevcn.com (PPS) with ESMTPS id 3ygrjcnnes-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Tue, 04 Jun 2024 17:42:30 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=hFl7b9SvHKR6MsTQoZ9q/cL5/rR9J/MJGBBszGkYX86Q9f84uIRK8NS8+RjDq9NRvrDtVE/6dzIPwqdlspH2qpiW/AvH7W4Mnktb2F62CEns/QW8tuAkw9wzDzanPzuHVzq7OGxPSVWD6HtMcog36KDw2KuvxPqLse6olhY4c3q7h3CCKGilgd4CE+MD7Zu0NKVThwgseqkej1Xi6Mz1Wuo3EftLI/dgAOx92bo3wi6c5FUPH6/dR3fWJOfZRzq2mD1Z/4UeEAKhVnkkxfKbrJg976RGNiwLfdZCmIjMgaDSNThMxansEF0/8T5WOsOjGoUE6yFEXt123axvrm7XXQ== 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=5zvCRKl+U2ByYXCU/OBlf+JIMmoEO64HTB1VnCJPdP4=; b=iSEC/rkeea8k0sQVO/B+hEIy79HLYDwjC97NBEV9xK0oMHt9XmLxDGbEuEKVJ7n5rEc+xlM5gc0d5YvTiXVGgdwqP7IM7d/zyrrVbKYUJorbMtIML8NgbAnxMSMT+L7XAggWdD84ctbQQwchlsHunC3Z6l33Kg0LWgDI3tFxvw2cl5ffborzehEYDTJQi5eTMVt+DA8d6m7sW/DodoOT1b93+rdPebtZ6uDLyEnNK5YUR4Eap5tScvW0/FCOolj+POz2s5NlIWhhDGnM573846bjmVJx0O8p2fUNYwGWKtF3ky0J+c7viSK9r/iWSahfp0ugzinJ8Xjbt8Ksp/s0Tw== 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=5zvCRKl+U2ByYXCU/OBlf+JIMmoEO64HTB1VnCJPdP4=; b=nDu2E6DwPqt8xqBGnJUuIiQV415gGQ1T+w9Bp023O8Qca5Z9P6Gf429y/57vA1lsKrShaVHd/rGry6YPbYqFmhftU0LdIxDgMQ7FKecg76IwDpZ87gHkRS9/89WT+t086YOFt5iSBf7A5mgudgTvhfN/bo8VkIJSejyzF7hluZo= Received: from CH0PR10MB5113.namprd10.prod.outlook.com (2603:10b6:610:c9::8) by SA1PR10MB7593.namprd10.prod.outlook.com (2603:10b6:806:385::9) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7633.22; Tue, 4 Jun 2024 17:42:28 +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:28 +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 17/18] maple_tree: remove repeated sanity checks from mas_wr_append() Date: Tue, 4 Jun 2024 10:41:44 -0700 Message-ID: <20240604174145.563900-18-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: BYAPR07CA0029.namprd07.prod.outlook.com (2603:10b6:a02:bc::42) To CH0PR10MB5113.namprd10.prod.outlook.com (2603:10b6:610:c9::8) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: CH0PR10MB5113:EE_|SA1PR10MB7593:EE_ X-MS-Office365-Filtering-Correlation-Id: 92b8bb8e-f776-4443-cc63-08dc84bdb3c6 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0;ARA:13230031|366007|376005|1800799015; X-Microsoft-Antispam-Message-Info: nUTGd/dcNXJlnlFN2G5bnxHf7IY7R2ArEtXhl1Ww9WK3cLgjE6zxgMpt/+7Y0+bwpfUuxJ6UwPAkQjjuDkqwoJKhZRYN6QRHQ8LspUnr7omgEbCyEaH4NS5BIi/mNkl1HHV4e4+XqztLLkBTWzaQQDMpffVZCrwtEIazuRvnUS900jQtgqv1HZsRFRlI/wBw/K5lBl9TvCSxkmR/DBYpf/r30rRcocVKXkz6IXBBbyN1cXTDRie/wfiiknLIkXkyKsuOQecZaPAXTlg40i2fxoVF6tIk84s5ywXvUA1KYKUR2Rkjbc8hQO1f6x5LTW9HKSHqCiIijS0Oivg+xAF+IFKoNixioZ1ZaifCQQTfQFoVjAsp2DEuf7OEoA08xWlMNPc7ECMaWhM2P9I58/JkuECKTWxIh9QkbFm/P0rLVUCDtzw03fUCRceO4+/WcttjA/NlqGnIRezpY/zX5yVZ7Mcm+e1OpjrYzFJXRgt57LqgBv94z2GOl4UYGl0GrMO82D/zg4ZLXXVbsewnhlCpbc9EfdhQ+2zAeszq4GN8JIgpVBvjOBtiWSmmEREhOOm8lgFO3XiuK2fLraJHXjhxqmIU4fLRH+vEDhKT+ZCtaOgQj0U3DggldbcYT23Qgga3ooyCK6Y4NNshT/EScBU1uJMY2S0Pvn4hsl7USolrigz26aDcmIHlhhB6tLug4a25uqx0tMSP/bVvCiAC2APqL3jprRSJpSLdnaBzGMhOBVYbIkMKXPH0CE/moS3+VXf/LvoNj+C37BNGbwBmLqnqXVbiw0HUdaErxztRufwhZ7noKFP24lsUFOi4UT7alEbiGuD8xYYY+/mb28yEbSYImrVgpGXslWX0yrIUfDzA+x92FG6mT51E4vLtw4E5mbmgUYMTNMxCqkJqq3YuZsjbf7zwIEjdLt8lYcmyYEAs6+ztB5ug3++APM2XMfRRF82jVTHw/GT/3bLeXZF7BvhYy+r1BnFMcu0FRwoeqIhpoBhaCRzN/Ct3I6/NETwRjffte2SGv9cjVpcgVY3YLVN3FFu08Pn+f1oefD8FUYUtnmUaeVex36dqK1abkYwBUOE6e8vhN7Xj7RLZ2qH/E65JQoVG24lRs+cB7GUgvr9+YSTPdCw8dgi+Ulgi4lxexPCN1ZyIGebkg50HM5K1oHPuULW1cS3IEkh5W/mst9z2Nikp0IqhTQ5hbpZtkyEOkhqT4LDkE2L8pSjKwmafR5S+UToXMhbSOeYE8lSswDACCKh9+kzept1FpTkdo4uUUQ3wWDjLBzGUmQgtfNBorYj5yw== 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)(366007)(376005)(1800799015);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: e1kGhgBKCXxSAav1yd37nRSGR7XM1hngRzfAUrEMvTm/BDKGlRv+y1TC3mDok8Un1lvuS7A0aKzQZChqDsbUtnTDiRCdji7CQh+lB5cfovoyOAAjAaca9RijFBk/IM3Grcr0vYvtf2kdhIdpJ1LNXDGHr+19vvGgn4/BBs5ShagMUq0V0gV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qjcKUTCoNd0puxfA9JahXaP4ZOkln4KncaSOlUpgBNWXqrtcMSHLRVPnY3BaVvlRMG/c+ubmCTpqsrDWCkVckai985bzaUOXX0mhtLxlKdAqYzOitChy0KTmxbPq07cTdx4uGOZLq3XR27De/8U+QXosccLqTsFPIdNqjrMQoYyTVP3+ipTXtGg5cX4zY56XXYeWJ4nmpWy2KO45bF41gJOVIv5ouvIig9lr55ho3KN/pVdPuQ7bzbxO552T5tpBzc27HbOJDgi9YYE8J7BJvzDGgDN03qEfENsL0v0JYgGMtJhGN3ScugtCd/1fV7uG2WZlgDy+uhmzEjm+YSvF6oBaCTiRtLPSXgplcEI2ICm4sptlo4155wELBdNSpIB4= X-MS-Exchange-AntiSpam-ExternalHop-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-ExternalHop-MessageData-0: SIWrxWfRw262gcaH0L0iavJqfugcDUXH8XlH2GeY9N5tYfwWTzZaKTgwS6YZQpc4eV2T/GDYXyLF4uFOsTydJQ1psjbvttYpoYOW3jJSgmXpJ2iq5nPdZ0ytb1XonwvpgYhxt1gryYMJsJunmjpWYq718XVLa6b4i6OibfHhBXi4VENIu12rx0NehXUQjyejCBbYsLok7i2noTWsAAfzUQYTAmubsk2yvM/RYLM2wF49OEcp7L/VRqkPh3HshF3OyOO/RB6Wbr0jqwt8x9O+S+3xELL7dMrqTVjNn40xbqgYXVJhoKHqAiO0WZpepDjzk6i59z4EvqBopUdVYqihbcNZDPB0//DpOJHcfWTp2DdOR85Da1ZCPhxO/67Q6Of5l3+kaslYKgo84tvEc2fnYq5uOoWb0GrZ835LfBLAzeJ5jR3Ae3a3OT+CzfzVhfTv4fIk1d6JPVFMPfPL6Vk0p9OKOP4Oj/X7uPOCh5esp+w3mnrlmJgLsh+VM6S3udwkdoOfLqhAumgdV2fISBHXZEYEbuODK3PlqooX53hzk951BLrsuKuU1J63VIxHcJyePMAQAh72QStGaSiwRaND+iGodYYtlHHItZlkdY0yR1s= X-OriginatorOrg: oracle.com X-MS-Exchange-CrossTenant-Network-Message-Id: 92b8bb8e-f776-4443-cc63-08dc84bdb3c6 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:28.0714 (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: dqalQIRAKT9dG/CWhIooAQmAIDeEngSHw4BlcB93OklvZKJ7RIvlugOnYS/bfgrCedx8tAnnRv7Jd+tetZdVEnOTgphB9//1oKvAiNU76Cs= X-MS-Exchange-Transport-CrossTenantHeadersStamped: SA1PR10MB7593 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 mlxlogscore=999 phishscore=0 adultscore=0 bulkscore=0 spamscore=0 malwarescore=0 mlxscore=0 suspectscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2405010000 definitions=main-2406040142 X-Proofpoint-GUID: zERGJ5ykFZStswL5NZ8BtfpYz35ybi5m X-Proofpoint-ORIG-GUID: zERGJ5ykFZStswL5NZ8BtfpYz35ybi5m X-Rspamd-Server: rspam03 X-Rspamd-Queue-Id: 0F71C80012 X-Rspam-User: X-Stat-Signature: cdqmi84hswuaky6zfjczewdoe9z9o71b X-HE-Tag: 1717522961-783233 X-HE-Meta: U2FsdGVkX19rMm41872CHaaJDRy4ClTcVu6DFRP1VGrXY0HwGdbXY6r2Eg/4Fo4NpJsU1Abji5T4gCxaYuRP11YU69UAZPxNe1VWqdXEdADULpecLmrroTGZRXpFpDYGBVU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OQqsICCh/D4fJbH5XisbMUEdxmHk5kXO2EymNiYNgUp954TwHbAbq0KEv7abxAjSJQWObCOb0R2XaKGMPmYaElLRsYLJFtRcUASe4PpiLj05x9h5ak3T5Pzrt3RUDuok/AC0xzRIF6O6kRVSx6QWbbqAW6tLIpO4Wjt2+D8iDAw/kWiaPD2hSJhvzcwX9NNbI6CDoC+US+Ge1KqWEs2+WKpX+y3zfYUwyiHFSS16csQqymnEST6i3qZ+GhLPMGH/r4amMWYxljjw08hRMuBxWuUs1XPXXa5b4foPMP0U7PJ0VkDK5ov/XSkDOL03aCXEVVD4xzCXuelHW2i4G6/zpJMnrQ6cA7G1O1tSPR22xcCdr3ezT7w== 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: These sanity checks are now redundant as they are already checked in mas_wr_store_type(). We can remove them from mas_wr_append(). Signed-off-by: Sidhartha Kumar --- lib/maple_tree.c | 12 ++---------- 1 file changed, 2 insertions(+), 10 deletions(-) diff --git a/lib/maple_tree.c b/lib/maple_tree.c index 3d2d8c2c24df..a90512d15549 100644 --- a/lib/maple_tree.c +++ b/lib/maple_tree.c @@ -4062,17 +4062,9 @@ static inline unsigned char mas_wr_new_end(struct ma_wr_state *wr_mas) static inline bool mas_wr_append(struct ma_wr_state *wr_mas, unsigned char new_end) { - struct ma_state *mas; + struct ma_state *mas = wr_mas->mas; void __rcu **slots; - unsigned char end; - - mas = wr_mas->mas; - if (mt_in_rcu(mas->tree)) - return false; - - end = mas->end; - if (mas->offset != end) - return false; + unsigned char end = mas->end; if (new_end < mt_pivots[wr_mas->type]) { wr_mas->pivots[new_end] = wr_mas->pivots[end];