From patchwork Thu May 18 14:55:29 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Liam R. Howlett" X-Patchwork-Id: 13246951 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 68A57C7EE25 for ; Thu, 18 May 2023 14:56:59 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id D708D28000C; Thu, 18 May 2023 10:56:58 -0400 (EDT) Received: by kanga.kvack.org (Postfix, from userid 40) id D21CD280004; Thu, 18 May 2023 10:56:58 -0400 (EDT) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id B263528000C; Thu, 18 May 2023 10:56:58 -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 A2DD0280004 for ; Thu, 18 May 2023 10:56:58 -0400 (EDT) Received: from smtpin04.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay08.hostedemail.com (Postfix) with ESMTP id 83533140819 for ; Thu, 18 May 2023 14:56:58 +0000 (UTC) X-FDA: 80803678116.04.A69797C Received: from mx0b-00069f02.pphosted.com (mx0b-00069f02.pphosted.com [205.220.177.32]) by imf07.hostedemail.com (Postfix) with ESMTP id 0A75240013 for ; Thu, 18 May 2023 14:56:54 +0000 (UTC) Authentication-Results: imf07.hostedemail.com; dkim=pass header.d=oracle.com header.s=corp-2023-03-30 header.b=lYOeeb9t; dkim=pass header.d=oracle.onmicrosoft.com header.s=selector2-oracle-onmicrosoft-com header.b="s/ySPeV+"; arc=pass ("microsoft.com:s=arcselector9901:i=1"); spf=pass (imf07.hostedemail.com: domain of liam.howlett@oracle.com designates 205.220.177.32 as permitted sender) smtp.mailfrom=liam.howlett@oracle.com; dmarc=pass (policy=none) header.from=oracle.com ARC-Seal: i=2; s=arc-20220608; d=hostedemail.com; t=1684421815; a=rsa-sha256; cv=pass; b=dpIG02+dKOGMPcPAWMYc9I69gN+k2gG4rZ2tM2OUzqZoFU+5+BcAyck0CF9pI367peMyAX FRUs5nWxTOm6mcnV7MvmqnP+T+JoaMphz5zEHcYenDM+EVzJroHO1m8QTAOPexpFFQlVLN 0EDNNFt6v+BAOf/7Imbjfc/sVabQbg8= ARC-Authentication-Results: i=2; imf07.hostedemail.com; dkim=pass header.d=oracle.com header.s=corp-2023-03-30 header.b=lYOeeb9t; dkim=pass header.d=oracle.onmicrosoft.com header.s=selector2-oracle-onmicrosoft-com header.b="s/ySPeV+"; arc=pass ("microsoft.com:s=arcselector9901:i=1"); spf=pass (imf07.hostedemail.com: domain of liam.howlett@oracle.com designates 205.220.177.32 as permitted sender) smtp.mailfrom=liam.howlett@oracle.com; dmarc=pass (policy=none) header.from=oracle.com ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=hostedemail.com; s=arc-20220608; t=1684421815; 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=o0r44DGQi8lK2mAF2MeGErME5jJFvB3OhAPffrijvsw=; b=3cm+4U3A3M5bO99QJEGEXWP2FreLuBlVt8eVdoa4/H4anSGNv3mvwI0LxAHpSIyhKACjBb /yF+RHI8NcYYdWp0gqlPxCiQgjtnA6iIlOU0KRHb7zlHkHY08nFlg/lR1q4+Ng4mU7p+gV ygkZsh1nfPkmIrfRHzbTDtMqwje4XZU= Received: from pps.filterd (m0246631.ppops.net [127.0.0.1]) by mx0b-00069f02.pphosted.com (8.17.1.19/8.17.1.19) with ESMTP id 34ICFdMs011817; Thu, 18 May 2023 14:56:42 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-03-30; bh=o0r44DGQi8lK2mAF2MeGErME5jJFvB3OhAPffrijvsw=; b=lYOeeb9tDTjBgHu760IoeDoitHpUdCuD7LLlDQQ3Ik596W9oIwml1Uo4+egtXCguqkDg MZeI7wjRwWiE1SeeZ29uFHVntjvR2vjcXAG9pYgztEgffRAqheI/zMSDJvjjW2XHWk2e uC0r1BbIJ9Yl1HMrrb41t4LYkzb2SdRNt9gUsl6nCzjtbzpstfWCAa25epKaEqHWb8QJ wmecwGeXsuGEWDHZl+qqiR+ohdZvTTS9gALf7ht/7WAEo2O7TJbMyGpoPGUat0zXKdod /gxna+ss1svib4Llf6w1vDDGQ9/rN9iCv0UjhB3n1/8KOqNG/sPetP0bMO9KZSex2lIS Cw== Received: from phxpaimrmta01.imrmtpd1.prodappphxaev1.oraclevcn.com (phxpaimrmta01.appoci.oracle.com [138.1.114.2]) by mx0b-00069f02.pphosted.com (PPS) with ESMTPS id 3qnkux8am4-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Thu, 18 May 2023 14:56:41 +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 34IE58OA039952; Thu, 18 May 2023 14:56:40 GMT Received: from nam10-mw2-obe.outbound.protection.outlook.com (mail-mw2nam10lp2100.outbound.protection.outlook.com [104.47.55.100]) by phxpaimrmta01.imrmtpd1.prodappphxaev1.oraclevcn.com (PPS) with ESMTPS id 3qj106mq77-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Thu, 18 May 2023 14:56:40 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=DMFVcldKu0no20qaOBhHqogU9oKB1+MqoJq7sSeAKJdJYvWCVsFBACDJxczQgOKPVaC0MBMss1o2D0x9hb132f1x06LTwiwYCby7+Y2xn49XpY/40PQaglNff9UaSEfmE9xNkpThyKjA75V4kYT7Wu9CIRZagCkRME2m/JM9OadDq5HdN0Y8eyyi76EXXHGPUSCJHWAiO930Zv2Sd2RL4Iz+FtorSwtFt2spOA71+Umhv9ANcJIQXAkGoYe1EX4I2unK5QvMQm4FLhS/8jPk4YQLZzAAeLocpSEiS9QrC6LXv/h1OJcVT6ewLIVMTvf2bjerjLB9ZCMWz90Y6xrotA== 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=o0r44DGQi8lK2mAF2MeGErME5jJFvB3OhAPffrijvsw=; b=FLr3burNW0/jLUid9KA/IGZApPDOhT++qQytnjboiExsQF2ViZ1oNkKafsTRudO5+HwGcqlKDgMvIVMN6rXFtwFQL5oyZpYqG49QqzZgTc0NXkOuNB9h+iWwq9QB/X9rCQ6cj+GpXKWwIA5FwBV11lCKCBGY/omSAsJy7L6dzIIWcpe+RYTEDdMJqBctau3LyjhKHCsS3SqZwRvZH2OzJ27lCeBpT4thHuFVTHyAYoIb80RrTiODa8GyYtOImFAaRdjUMjaKdtdqTj+9f2rUnznIESK3Y2ItSFR7M/byTGhFJTmlnnTgRUXB1ji0Pk5YquY0wZ1z4BLd2egYWqU3wg== 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=o0r44DGQi8lK2mAF2MeGErME5jJFvB3OhAPffrijvsw=; b=s/ySPeV+sbo4/piqxoX5wWOjISchDKODU0DFNs9jD35gQZiVSgeX8L0LbaAiHacRUR5D2GkVg8KfWIukNifzB/KljCq3yw4cAQTo2t3lDeJkDkub468ZmS4a1nsi5A4XMGquRr4FpQjOUVRw+eEL1g6vB508lBKYtHwE4CPCed8= Received: from SN6PR10MB3022.namprd10.prod.outlook.com (2603:10b6:805:d8::25) by DM4PR10MB7427.namprd10.prod.outlook.com (2603:10b6:8:181::16) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6411.17; Thu, 18 May 2023 14:56:38 +0000 Received: from SN6PR10MB3022.namprd10.prod.outlook.com ([fe80::998f:d221:5fb6:c67d]) by SN6PR10MB3022.namprd10.prod.outlook.com ([fe80::998f:d221:5fb6:c67d%7]) with mapi id 15.20.6411.017; Thu, 18 May 2023 14:56:38 +0000 From: "Liam R. Howlett" To: Andrew Morton Cc: maple-tree@lists.infradead.org, linux-mm@kvack.org, linux-kernel@vger.kernel.org, "Liam R. Howlett" , Peng Zhang Subject: [PATCH v4 20/35] maple_tree: Remove unnecessary check from mas_destroy() Date: Thu, 18 May 2023 10:55:29 -0400 Message-Id: <20230518145544.1722059-21-Liam.Howlett@oracle.com> X-Mailer: git-send-email 2.39.2 In-Reply-To: <20230518145544.1722059-1-Liam.Howlett@oracle.com> References: <20230518145544.1722059-1-Liam.Howlett@oracle.com> X-ClientProxiedBy: YT3PR01CA0048.CANPRD01.PROD.OUTLOOK.COM (2603:10b6:b01:82::32) To SN6PR10MB3022.namprd10.prod.outlook.com (2603:10b6:805:d8::25) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: SN6PR10MB3022:EE_|DM4PR10MB7427:EE_ X-MS-Office365-Filtering-Correlation-Id: 875d706d-cf57-4bac-0bfe-08db57b01520 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: CbY39T8TPABngFOk3XXWn5+iR6zWcCcBKY7CrBNpW+phjZ2r5zHgJ2XSPylEf9OKCXI17slEOnjCPCP+SPQaH1x/fT3E6cOw3G3LXiUbanRlrMAJJxxZm7AzkrApeYZXT4pQsKi5hes6vO4nTyCqiy3Hsiu+OIHbgSA8MKK64PVl8LPNN5GhgAR3NDbRrFsBQNUPcNJ3n/WO505cvIUTmp85W52Ipr5uXhkgT82j5fG8FYMXGLiyE8ja1xJpRGQPuyyqybAvOfR/Wn6gWR3uj+AdHc7uBYutpEIu9tJ2nBToHsgLz/XnEpdkU6qrMdTd7pWwwjIm6djLYonUhXeYOwbIaYiCoBBjf/wlFZY+WJws9QlWx0r9VbdzHaJZUJRglcFpP/3Fj7yMDjhYzt3UYGfz83OgD5w5CLhSmunGiszb3cqZc0HxDQqPCULaVj/OURTVZP9hYBJq63kMTna8rTAt8Aky8OHVOUdcETrfTuEm8zX8vBFvl4pPinWgUnLws3Ueqy9B0FpYsxZeCWbgxaTnvPjEwtURyYD15DvCTrhp+Nk2tey9jZuMbnALvXEo X-Forefront-Antispam-Report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:SN6PR10MB3022.namprd10.prod.outlook.com;PTR:;CAT:NONE;SFS:(13230028)(39860400002)(396003)(346002)(136003)(376002)(366004)(451199021)(8676002)(5660300002)(8936002)(4326008)(316002)(6512007)(1076003)(83380400001)(6506007)(26005)(86362001)(186003)(38100700002)(2616005)(41300700001)(478600001)(66476007)(6666004)(66946007)(66556008)(6916009)(6486002)(36756003)(54906003)(2906002)(4744005);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: hGU/L9P0z/sLWHGZmdfo8bPOejmYmFheOhc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ZaXC/gPb0raa1FTkCDL1FrjLgDbfmeegn4/ncM9lyPYu8xryUrKFYayLrNCAjPczoaWWxQen1iksyQFYy+2s5cssMCSHj4OdgPVEjljw5tyPnKDQl1L5ggvjrRmocRYe/SS8wUb7h3mDrYbzY/n361CPHIEKPJY9vPWx8U7L75/xmoIrsZDHuxVtU2KLs5yGki4G+arNCFv1mONB/1xIbWiTvOAjsQ+Mf7gQ2VL8ItvCtkRVAGZ+/OrMuH1uTHKcDoIHPxSLffq1MFv/NPbTzbzZMFLG6lKZqjo8FkgbRBXxmH7ubNSflG9eWMmQM0nhC1eZR1V3nNfui8jHK+QvbRUwduqF0nOPdx2UGqHdTGLgbM48eADZw0z02EMYXOIAExSlSrmU3BDRoY+akYNhwGw0eoso6CcZUNP372bENxyWBGZeRjq1c+rzsnLrm/fbf3obxuov X-OriginatorOrg: oracle.com X-MS-Exchange-CrossTenant-Network-Message-Id: 875d706d-cf57-4bac-0bfe-08db57b01520 X-MS-Exchange-CrossTenant-AuthSource: SN6PR10MB3022.namprd10.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 18 May 2023 14:56:38.4459 (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: VOM15J2Z9KlDho56a5mUaTrloTOrE2kD1LvwSpL+Gk2ENQOK1icfazHNqlVdtLMh/K1FdJ1OBmNIynFCNLOvHA== X-MS-Exchange-Transport-CrossTenantHeadersStamped: DM4PR10MB7427 X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.254,Aquarius:18.0.957,Hydra:6.0.573,FMLib:17.11.170.22 definitions=2023-05-18_11,2023-05-17_02,2023-02-09_01 X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 suspectscore=0 adultscore=0 bulkscore=0 mlxscore=0 phishscore=0 malwarescore=0 spamscore=0 mlxlogscore=999 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2304280000 definitions=main-2305180120 X-Proofpoint-ORIG-GUID: 7G9eij61nVLHRGAzBCMMGRbFfqqx6-Gi X-Proofpoint-GUID: 7G9eij61nVLHRGAzBCMMGRbFfqqx6-Gi X-Rspam-User: X-Stat-Signature: t73x9s9gzxyz7xufht1b86unhwxufoac X-Rspamd-Server: rspam08 X-Rspamd-Queue-Id: 0A75240013 X-HE-Tag: 1684421814-672817 X-HE-Meta: U2FsdGVkX18zOBvWsN0s9IFQoRUnPrZ3WJ3Xqb9u+oT4lE+QEZ2GUezHCr51ldNLMDXxy1X15ijOZxkMNBm1SrU4QZNKpPeyvVAouVF/hGzgglpXHgxXGiTop9D70YPk20tlQYoUn9yfYfcTwUwIMu7sohIbIsZhcN/Wv6oml1bVZEm5IusLAevWPE2sB/u7s6F4v4nvIcugyr34D39mstMo8HiR3ORlJfGaLUnqvU1ODCenjAoHiHDOARDxid7t7WPNvhqyXK2bZS0M7MgfU+7rr9VjvF5UzSZFSvn+5qU7ajrtNYMHdDSKyniGgXvTY2mbCFGuVSV4Vxeu4Ouyiu8n6DsGgyZ+ycewWkuvoTC3Atb3ug+fd2oOCxdoSn7FFkGdp3N0ZjuuGMhGLygqBStWqvGvMxB/YsXOhFuzzVHtM0PsUceZvas6oZolxvYV4V7NQIcjpBLGj471dB7SQ2XNW/0N0lBcxY9F9Z3cjslhHKxLbsXcNMsJE31REXaeFYET2VVM9vhS4gqzKln2NYj4h+mYyEkTYf+aGFx4JAVz8CnkKHoS4lOQ8XePiYZtL9n8I2yvJhip2/nGLVmDxDr9TESffetoelJFjb2NT68HKl+dqb+u1Vp4rWFG889L/1jID9WxYxGCZIL4CmnTCdE65naJO1gJWWRKwoZvTaQ3TRu1EVH7utbefhjP8rnX9KJfkSACOalY/r5TZ8nnMl/RdC6y8bc84PiQMV0jSFVWAbBS13ZRlax8nTpKXTlTjCsODNgso/yTMWjd2s8Db0/EOuJ1hMt+/pLmpk4J0QgtjDPv72scwMw00VoSPye8wrKDwtx2vpuPsxsTaqulDevVh5UKX0pVVWQRsTrjj+X0TsLqtefyp4Hve2BUBNKZmwehHBe2+JwnHQYgjn5GET0pqAyTQOEq2wivlQqCzNWFEvh0e/yRWKhQfFE2y1A4usFj3A8WCNZO8Mx3+ku HOYSSiBd 4agGsbsQ+3JbyPeZsnY/K0yi7lDAQaKM59vP6QVYtynxSXppeVsnqoLCuL3xXQ2KQ9C06xoVzR4pswUIrcVD1P4rwB/B1a04hqm8qDhieckXOPaS5ja8XIJKVQNw0Tsq8OtOdbj+kU+Agl8kQ4TZutBolssoxDV/Qe583HTMxi1EW7bVU73LVvT7DeHMaCm3RYSGgIMsUE4gSuYNgz+BYu1rT25r1pbGrtVoGI3ntXVuixvidjIPV+dySOV22FUaBLkDpCpR8wilooKAY1a4ssHJeF07cKZWDdGHNREeHgbd5OjDcIL/qQgqyoK87l1cNbLCtK9vEltB8mibOilrnJBBLVjwQkS4N/zjV3capqqlHGMebH0fxss44FL4FDFUmXb6zA/2PkLPbWBDe/K9paQJP661EPtqtw6BhVvyq9XqtgX3uq19wZUS7R0OrD+PrkkH8c4Nkw4uxf/3kwxT2Wk5fjVAKpCwd+V3A65PTh4BLhV4= 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: mas_destroy currently checks if mas->node is MAS_START prior to calling mas_start(), but this is unnecessary as mas_start() will do nothing if the node is anything but MAS_START. Signed-off-by: Liam R. Howlett Reviewed-by: Peng Zhang --- lib/maple_tree.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/lib/maple_tree.c b/lib/maple_tree.c index 9f3784f4a5b7..b3e5ae43ff8f 100644 --- a/lib/maple_tree.c +++ b/lib/maple_tree.c @@ -5816,9 +5816,7 @@ void mas_destroy(struct ma_state *mas) if (mas->mas_flags & MA_STATE_REBALANCE) { unsigned char end; - if (mas_is_start(mas)) - mas_start(mas); - + mas_start(mas); mtree_range_walk(mas); end = mas_data_end(mas) + 1; if (end < mt_min_slot_count(mas->node) - 1)