From patchwork Tue Apr 25 14:09:42 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: 13223386 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 80D96C6FD18 for ; Tue, 25 Apr 2023 14:11:29 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id D0AFB6B0092; Tue, 25 Apr 2023 10:11:17 -0400 (EDT) Received: by kanga.kvack.org (Postfix, from userid 40) id CBA806B0093; Tue, 25 Apr 2023 10:11:17 -0400 (EDT) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id A983F6B0095; Tue, 25 Apr 2023 10:11:17 -0400 (EDT) X-Delivered-To: linux-mm@kvack.org Received: from relay.hostedemail.com (smtprelay0014.hostedemail.com [216.40.44.14]) by kanga.kvack.org (Postfix) with ESMTP id 9778C6B0092 for ; Tue, 25 Apr 2023 10:11:17 -0400 (EDT) Received: from smtpin20.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay04.hostedemail.com (Postfix) with ESMTP id 715F71A014A for ; Tue, 25 Apr 2023 14:11:17 +0000 (UTC) X-FDA: 80720100594.20.E864ED5 Received: from mx0b-00069f02.pphosted.com (mx0b-00069f02.pphosted.com [205.220.177.32]) by imf04.hostedemail.com (Postfix) with ESMTP id 2D33B4001C for ; Tue, 25 Apr 2023 14:11:13 +0000 (UTC) Authentication-Results: imf04.hostedemail.com; dkim=pass header.d=oracle.com header.s=corp-2023-03-30 header.b="cMq/7R30"; dkim=pass header.d=oracle.onmicrosoft.com header.s=selector2-oracle-onmicrosoft-com header.b=OMCljb0G; dmarc=pass (policy=none) header.from=oracle.com; spf=pass (imf04.hostedemail.com: domain of liam.howlett@oracle.com designates 205.220.177.32 as permitted sender) smtp.mailfrom=liam.howlett@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=1682431874; 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=zk1NC2fG6tYl5ET+sXVIUCMom8YlQoKAotPxuETP2bE=; b=2P0V+1J/wf0rTk5uQZmdEVUu2MxCzqLb36xA0I0IQXx1IA+VZP4LxBSXF9B+FM65pyv9ss xkiAAGaVBakX3bTi+dRkt3M92NtTemWPecrEeO12MD//gkPKtRWPSr/qW0kVaQmr1Rd7rq 9c7i/k8FKK3hEvy4CIRdMJ1KJaxo3lc= ARC-Authentication-Results: i=2; imf04.hostedemail.com; dkim=pass header.d=oracle.com header.s=corp-2023-03-30 header.b="cMq/7R30"; dkim=pass header.d=oracle.onmicrosoft.com header.s=selector2-oracle-onmicrosoft-com header.b=OMCljb0G; dmarc=pass (policy=none) header.from=oracle.com; spf=pass (imf04.hostedemail.com: domain of liam.howlett@oracle.com designates 205.220.177.32 as permitted sender) smtp.mailfrom=liam.howlett@oracle.com; arc=pass ("microsoft.com:s=arcselector9901:i=1") ARC-Seal: i=2; s=arc-20220608; d=hostedemail.com; t=1682431874; a=rsa-sha256; cv=pass; b=vh5fVggGwzVJiM1D8EopW6W4Ej/FQVD2Ujmd31h2d5J+oDRuUCY/CeLExInD6WzmrGFxIZ JwUzoFo0u8V720e/F3exSv3zlS0NKlLCdsqLG0YMmxI2gf8PLRLSnb1NGdBswF8cuaJTMN 4kabB/G1qJtx/PYrBZbeLBz6Pnz0YCs= Received: from pps.filterd (m0246630.ppops.net [127.0.0.1]) by mx0b-00069f02.pphosted.com (8.17.1.19/8.17.1.19) with ESMTP id 33PDi1SW008675; Tue, 25 Apr 2023 14:11:13 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=zk1NC2fG6tYl5ET+sXVIUCMom8YlQoKAotPxuETP2bE=; b=cMq/7R30hNd7CxCX+HQut/Evm2eJoDydFZYxRBMsz7EHue2Qw9VJHrDs7Stjpl1vk69O pYN4Wnl9dUHjql19zzlJd7OeBdnWh2Dit8USV1JOtM6vgfOS+oI1xafFffNob/yq/yJ/ ggBEB3RrgD57dDJZHNM5Ti5jYxhmikGD7u0eT3Hg8iJtUeWrU0WxYuDEhPhltg6r7VGi 31B+Pl77QWU5pWH2/laIJPLKhgVYWJ11W7yOtKjWBbT+T9rV3aJ+sTXzOVvmeLbX0ETR iw+6H9Rkf8uxew4SwnS7h/t4JTvJi+Hk0Mhm3EVt3C9c465/bc3YPKu8emMOHoAhD1pG JA== Received: from phxpaimrmta02.imrmtpd1.prodappphxaev1.oraclevcn.com (phxpaimrmta02.appoci.oracle.com [147.154.114.232]) by mx0b-00069f02.pphosted.com (PPS) with ESMTPS id 3q460d5e6s-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Tue, 25 Apr 2023 14:11:13 +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 33PDXeUe032632; Tue, 25 Apr 2023 14:11:12 GMT Received: from nam10-dm6-obe.outbound.protection.outlook.com (mail-dm6nam10lp2104.outbound.protection.outlook.com [104.47.58.104]) by phxpaimrmta02.imrmtpd1.prodappphxaev1.oraclevcn.com (PPS) with ESMTPS id 3q4616qtmu-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Tue, 25 Apr 2023 14:11:12 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=N+yfTqRRhYxW86E0jI0E1srfJBPTYoz2vIR4X8LDmJW7ResI1jQaFbcjidbInjxmZkpxgcNuzUhjhAI1zNzgeh7IzhcUkR5j7tt6Zughf9FAOfc3M4YEkksDWUCtNEQw4fEJAWdxb9F6oMUvYOBMk4E1XRNaFfhdaNAWiMhHL6r7zlK2pz5Ibiur0xoAbcsLeN3QgLiTLWTwQ9sHboNfkmOL1dFgjFLK929bdrYFIpFeU62tUc8BzOWTHrc4K1VuhqjLMNxYRkS9L/FgVQJC2xCxG+/mW+N9QTuGkGuYNcOZSr+cFfIOiD1Y2q0Cw1cAbOWvWkIwDFQhMvWYV5xRSQ== 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=zk1NC2fG6tYl5ET+sXVIUCMom8YlQoKAotPxuETP2bE=; b=JpuZ6+i8sIca4M7iDUhyI4W7Y5lmkvAyynQ+49WqNX2ea4rgm0by8xzmo3GXnlIpdx3zqvKCXtZRbXYqBkNtZ3AoVl499YmHPRg7TxEmXDQ14pAwnK0o+sR9r+dRS09ruYSjpbRhCYhiaAhR2S29O8m023SJd90oe2mS1t6SqlvRzkCPp2RYW1RBObzEg5kobcBjHvHxUwSfFI4oc/6+tbydoUxUN1XoSEEX08LAKM2CvWoyhtJjTddl4U5vFB0RI/WXsTezTetXLfevPIk+y2UtUrsSAuT2tOpOVXxHodQ5rT3SOlAbMbeylHWSm86S11Ig4plVnjiiISx0uC9syQ== 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=zk1NC2fG6tYl5ET+sXVIUCMom8YlQoKAotPxuETP2bE=; b=OMCljb0GTlhdG3KLfeIU/WcViSxYopQab9UaQH8K86PG1gVHebRdprxjeKtIt8zQmCGRbCyfjBYkYJZwi0pbUXC/WL2dREf2I2eMyRGIs1wFyS+PyBvnOZRlKbGCkI4CYxC6FNFTstllUTPWWqZfPj3A4EieWaG0SSQqZAFqmg0= Received: from SN6PR10MB3022.namprd10.prod.outlook.com (2603:10b6:805:d8::25) by CO6PR10MB5572.namprd10.prod.outlook.com (2603:10b6:303:147::6) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6319.33; Tue, 25 Apr 2023 14:11:10 +0000 Received: from SN6PR10MB3022.namprd10.prod.outlook.com ([fe80::8bb9:2bb7:3930:b5da]) by SN6PR10MB3022.namprd10.prod.outlook.com ([fe80::8bb9:2bb7:3930:b5da%7]) with mapi id 15.20.6319.034; Tue, 25 Apr 2023 14:11:10 +0000 From: "Liam R. Howlett" To: Andrew Morton Cc: linux-kernel@vger.kernel.org, linux-mm@kvack.org, maple-tree@lists.infradead.org, "Liam R. Howlett" Subject: [PATCH 21/34] maple_tree: mas_start() reset depth on dead node Date: Tue, 25 Apr 2023 10:09:42 -0400 Message-Id: <20230425140955.3834476-22-Liam.Howlett@oracle.com> X-Mailer: git-send-email 2.39.2 In-Reply-To: <20230425140955.3834476-1-Liam.Howlett@oracle.com> References: <20230425140955.3834476-1-Liam.Howlett@oracle.com> X-ClientProxiedBy: YT3PR01CA0011.CANPRD01.PROD.OUTLOOK.COM (2603:10b6:b01:86::30) To SN6PR10MB3022.namprd10.prod.outlook.com (2603:10b6:805:d8::25) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: SN6PR10MB3022:EE_|CO6PR10MB5572:EE_ X-MS-Office365-Filtering-Correlation-Id: 7e9b0886-0df9-416d-70da-08db4596eb65 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: 8Lg989TkU5CPsptCc/e7c78db+ozSMAioF6pXWKSFA793/AR+pBK6ZVEcD9Zb3RE10YsnpORhcoLwVh0eeu3v0wtdjLyaF7pO0MW/TDIG1v+e2p8nY7AOiCdYcNzHiJXh6NlD7xp4nqYzYwybJkFVAH3TK7vipfc3LKWUif/3GWglpbDeWwzGY3RD5A50NupaPyTilJjuNU5woXR71OzeixOIciGF3wr34Z3FoR539M2FnsBvz53z2I4iuG/a9EW9LLk/MS/qSqKOjb9Td21OdCd8HYB/OgbA/BwxDJdEIoV1M9u4/dL4/KOO8CEZHzUUu6K8IrtbKlFFAey25E6UUb+j/s2/AhFc7Bh9QugghHXPFYmDibx9RdzhBQb9pElhx/46Ue+Zh4gKeW9zVYY2YPiITUtq+ag/+VtHpxRO29KT8l2Bo8lQH5CPVEiYbWOKWLRtv0IUX4+6RWzUUnD7wrV3FhqZqszciELKjoQFc20zUUSnsSYY+zZhoc7GytkEd+HC5j5y0TvfyDtrcrCmkUOkCoHo2m/hzmkBvxj0i10v6P9a6zJxyu69zXPONJI 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)(366004)(376002)(346002)(39860400002)(136003)(396003)(451199021)(478600001)(86362001)(36756003)(107886003)(186003)(6486002)(26005)(1076003)(6512007)(6506007)(4326008)(6916009)(66556008)(316002)(6666004)(66476007)(66946007)(83380400001)(2906002)(4744005)(38100700002)(8676002)(41300700001)(5660300002)(8936002)(2616005);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkC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eFIwDrVsR8zomKg5HOoBETjbECUFjY1tDg+3MCOxfPL6TXB5zhQvNyfal4glMbijRxAkuNukAPcqohRKILdGehtF4WeQH/PRFp1ZRY/I0q8/NZZASgb9UvpJe6ozO5IYnMv1ktdYow7wyU6j6NCCEhdHsfH0YcT+cQG28f+FbkVgvJhImAJjfbQyaaS1QJX1JSHN2JZXDwHUKHt3gMoguWVhxHhNm6Rc920G9TkX8hp7IzIK1YHtoeuJRG+ptHVql941tzUV0TAF3/KG9w89tAMxLJQIAlkLySEzYsIa4Gt13XyrmP8L+9np+5uBcZsDA0iOLQ3sm30P5VO8ZbzrIEG/nwhrx4LNxBoum67sJkAp1zwgArvgHrBh67DjOAkLxnZAkl681L2t/KVYDqzlFURUfoP7EoHrQ69Ij+JimkbzRfEWuUxX7ZTxbM8m5cpP/w2Ap4UzncuC0loFTrZ4vGBgh5ZweRRZZyKY+DytJ/6w== X-OriginatorOrg: oracle.com X-MS-Exchange-CrossTenant-Network-Message-Id: 7e9b0886-0df9-416d-70da-08db4596eb65 X-MS-Exchange-CrossTenant-AuthSource: SN6PR10MB3022.namprd10.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 25 Apr 2023 14:11:10.0794 (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: mVi6jQ2lXihf0a/DwSfRRQC4vTRP+bb3GJoheCI2pJ/Z7fNkDfxpA4x0rWFsGkgEZmSpQ4ItyHgYf/5dRAfrPg== X-MS-Exchange-Transport-CrossTenantHeadersStamped: CO6PR10MB5572 X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.254,Aquarius:18.0.942,Hydra:6.0.573,FMLib:17.11.170.22 definitions=2023-04-25_06,2023-04-25_01,2023-02-09_01 X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 spamscore=0 mlxscore=0 phishscore=0 mlxlogscore=999 adultscore=0 suspectscore=0 malwarescore=0 bulkscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2303200000 definitions=main-2304250128 X-Proofpoint-GUID: CQ_JprCwYgSqd0-Xfigb6jQnQawjOYco X-Proofpoint-ORIG-GUID: CQ_JprCwYgSqd0-Xfigb6jQnQawjOYco X-Rspam-User: X-Rspamd-Server: rspam02 X-Rspamd-Queue-Id: 2D33B4001C X-Stat-Signature: o3jhpr9fwpoqe6ogsz3n9ojnyb35e4cx X-HE-Tag: 1682431873-265219 X-HE-Meta: U2FsdGVkX19fiCzOxCoCXTiDMkNgs0go7UZxwsU7y5FstesNDr7i/C5jezCkT3ZCbspqIXugpCMjeVGnm9jZNVXR74nJ7K99JMq/xiRKGpCQLXaxfodMOwrDNgWyOJe9mli0d511K2qi3mRdZkP/JbZgm352ZIff8MQDbWzBo95aMr5vPZyYHReHErbqH7WTVRasp113u201KPBi/sRr2H2hrpeFKWPIyVOSHmL5qTsNj5Lo0PVWUeQrcvx4L8i+ELLCfZlOxxiMuYYVjUjeGAyN3kN7vXX3WrlHnY0AQ4k3q6YmVhUfbYydDYPPC0wf5QwX8v/mVX9V+IGblz2jXFco9mf8ftdFh1bYceNTwD5i3kxN/We8mxuIpgHz2TCvcsdEZzyQCPbXVqFExsFocE1UZL2fK46gxhTdlOWBhjQYxgu6ALdNvB/ZJUXrxxW/hjtvvi1xBXzSEE6GGOfSOcukQBLFtKIe/JY6J4xwxwixLSp/srqG/haLcZeqUPTZyXo8947FKQvloG9G6+h9SBJ/5oKabrkXlOj78rP9pQY/HjfIQZ7csHTwtdxMlLLpSmtnVcI+3d97yIqgdj1dg5V+idkTYFgYHav0iVt2tGcO9ZBAMWdsSN4XWFoWSjJvZ/v8U3Wyv4OY6ZKzTzPgI1+s/jqqf51MQDZyDtp5cqWVKdxduRGs9F8/tC+08ER5XcgyrB6R703J9wel4lps7FWSoH9ieQE8QmzXjgX64l+helBUns2H565iO+LQlwld61U7cELcWjSgW0H0clV4Y7/v6cpr2/H9T3ZNltW1/HSy3ca0XGjFBxpoMH/0FHRoBbxcj+MprPu3VX0ouehDFMaFggiG/aRSjzTtNt4BwjoO3XDVJiq9lWjaUVkQpDxaVlewer1iiL7BiJgd7A6jNjZvaMDMri9V2ZZkz3rkTWh7Row/0c/6PArmLuWX2LQ8Uda2WXFhDJ9hnzB4gsA Bjh8eGC/ Dbih1WuMO4ldu5onUqeOpnkJDQUMJxhfFlrI1DAbttcMcOowMPKrq4+CSDhLUqNArhnCpYxHEBRug72aMCheZvfC5+vaxwfZYuMKpaYzzuapTtxrsSAz1mJXZUDnM0JI+/5AlLBVallX15ZJHq2rtPkZHfLRuSFjYB1XPZACcS7P/CJ6HH9W+iCkQ3e0ZGBqQXCYYXEn8KxolfI1YlNX4g2MyMB8yb8yC4jTazoRsqE9jf621dCnfp4XKgAzkaXJw602CCfvL1MHKdHmVLsu5jPN8iqGX9pQlIz54lbB4KjUmQe779jXDonoQp2JtcLfltWOkvQ6rYyKI866fdmGenXSE44X42l8iTkAb/S+GVtHRc/NPXpNA1PBjFXYtL6rwUdW2xHgfuN59WbSaZcwzeQMcE5bEEol+mffJFWz3jAWXYQA= 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: When a dead node is detected, the depth has already been set to 1 so reset it to 0. Signed-off-by: Liam R. Howlett Reviewed-by: Peng Zhang --- lib/maple_tree.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/maple_tree.c b/lib/maple_tree.c index 35c6e12ca9482..1542274dc2b7f 100644 --- a/lib/maple_tree.c +++ b/lib/maple_tree.c @@ -1397,9 +1397,9 @@ static inline struct maple_enode *mas_start(struct ma_state *mas) mas->min = 0; mas->max = ULONG_MAX; - mas->depth = 0; retry: + mas->depth = 0; root = mas_root(mas); /* Tree with nodes */ if (likely(xa_is_node(root))) {