From patchwork Thu May 18 14:55:30 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: 13246953 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 9687DC77B7D for ; Thu, 18 May 2023 14:57:04 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id EA96A28000E; Thu, 18 May 2023 10:57:02 -0400 (EDT) Received: by kanga.kvack.org (Postfix, from userid 40) id E5BB9280004; Thu, 18 May 2023 10:57:02 -0400 (EDT) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id C846E28000E; Thu, 18 May 2023 10:57:02 -0400 (EDT) X-Delivered-To: linux-mm@kvack.org Received: from relay.hostedemail.com (smtprelay0015.hostedemail.com [216.40.44.15]) by kanga.kvack.org (Postfix) with ESMTP id B7CE1280004 for ; Thu, 18 May 2023 10:57:02 -0400 (EDT) Received: from smtpin29.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay04.hostedemail.com (Postfix) with ESMTP id 805BD1A0879 for ; Thu, 18 May 2023 14:57:02 +0000 (UTC) X-FDA: 80803678284.29.D534049 Received: from mx0b-00069f02.pphosted.com (mx0b-00069f02.pphosted.com [205.220.177.32]) by imf02.hostedemail.com (Postfix) with ESMTP id 25D718000F for ; Thu, 18 May 2023 14:56:58 +0000 (UTC) Authentication-Results: imf02.hostedemail.com; dkim=pass header.d=oracle.com header.s=corp-2023-03-30 header.b=HITpHuHO; dkim=pass header.d=oracle.onmicrosoft.com header.s=selector2-oracle-onmicrosoft-com header.b=LM0vOOVd; spf=pass (imf02.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"); 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=1684421819; 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=kk1VuRS5kSNxVjC5gqUqAVN5sQ5M/Ew4SDikwGYXJCg=; b=VYEOP36XW3PxWl9VKjuKY5miY3cBLn9qKKpUe55fnZGQtTk0GZo+tHioxJvyKo3k3MLZGd +mSJy2gfQsT9gFA5uDSPuo3hbKnHxiDUVOJXofh5vIdEW7VTuSqFT0xUKZ0RoNiE0PxyjE ht71ewRKVcIjyVjpmkQ6fiE/+ZwTAo0= ARC-Seal: i=2; s=arc-20220608; d=hostedemail.com; t=1684421819; a=rsa-sha256; cv=pass; b=MmInsXG/4ICA031zqtQvqSL06tU/gqeJIFzIzpmwz4jJ8A7PMEAJqnOejedK0EacwgJKxc v3DPiiR/dN2VYCzeeb9c3feDOeu7J3Px5fJkLjIHKsthHAXxSUNYFCvyNu96VJ14FhbWQM WV88qti06RsMy+k6LRwJjVrz6LXtmTk= ARC-Authentication-Results: i=2; imf02.hostedemail.com; dkim=pass header.d=oracle.com header.s=corp-2023-03-30 header.b=HITpHuHO; dkim=pass header.d=oracle.onmicrosoft.com header.s=selector2-oracle-onmicrosoft-com header.b=LM0vOOVd; spf=pass (imf02.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"); dmarc=pass (policy=none) header.from=oracle.com 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 34ICEqPV010486; Thu, 18 May 2023 14:56:43 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=kk1VuRS5kSNxVjC5gqUqAVN5sQ5M/Ew4SDikwGYXJCg=; b=HITpHuHOX1gPHewBmQthXtlbWE+BVFgaYakYpCF/j2lTTCgVF5S103/hvxDM5kDJlbVE HzI4WBy3Cy/p+F1JKM1ETDRN/DEud60pAhqMyQc6s/Mu5entdTuUvYxIqPNnx7mxhMbo ZKXXi4wHRTruc3mdfD7vEPtV0ipM2zygnbG5oswqPSpGJOGJfIkv3UpEbnPsAI2zwURJ LblouYnLoiNcoNIZQfw7PIufB+b67Sxf/gTqew1Lj/bykLd7HO0IBf20u0htgZN1+Eqg 659fpJWcSjBOuCe1g975Q85NtvYRr2dVN76VzUJGZj0lpic2XilUMhsHb/bLKgBzJ1fM eQ== Received: from iadpaimrmta02.imrmtpd1.prodappiadaev1.oraclevcn.com (iadpaimrmta02.appoci.oracle.com [147.154.18.20]) by mx0b-00069f02.pphosted.com (PPS) with ESMTPS id 3qnkux8ame-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Thu, 18 May 2023 14:56:43 +0000 Received: from pps.filterd (iadpaimrmta02.imrmtpd1.prodappiadaev1.oraclevcn.com [127.0.0.1]) by iadpaimrmta02.imrmtpd1.prodappiadaev1.oraclevcn.com (8.17.1.19/8.17.1.19) with ESMTP id 34IDwvVZ004274; Thu, 18 May 2023 14:56:43 GMT Received: from nam10-mw2-obe.outbound.protection.outlook.com (mail-mw2nam10lp2102.outbound.protection.outlook.com [104.47.55.102]) by iadpaimrmta02.imrmtpd1.prodappiadaev1.oraclevcn.com (PPS) with ESMTPS id 3qj10d67yd-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Thu, 18 May 2023 14:56:42 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=dFhMc4LohmRJi46ozfUuvePWITLAo877BtWwIFnHAyDIz/b09/h+6Z9D4kulrQs82ukhmkc0Ki8tok2exMqbIrGbX1AutzKBKxZko5cps5oOLpkIq2vvci31Kw2jAm0vCOc3HBccKrLybxOQM7qzYmCjVyu3auyOEVmR31rd/eOkcC0cDBxvTPdprPUApxofyur1xXvpupDDXZ3/eJgBxGfA28Yf7rFtuOL5ourB7jE9oLOtI0Ws02IrmULLDdtvtpah21uTHFSakPHnMitOG2IC69GXBEmnQIJ9yNRRIIA14f7A6TuVpWIr3GvIKnaMAEbhQ4h1klNBJOEgKNSENA== 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=kk1VuRS5kSNxVjC5gqUqAVN5sQ5M/Ew4SDikwGYXJCg=; b=gEITRlcxny4bRBwPd2LUGTnGcsIXmE/QepPPPEzG9XukZznIaVQ12Fcj07AfDY/IayUX/9BNRTtnoQZS+HxVVVQ/ZO8NxX2DlnqJBljpQK2lz4HDCNU+AhlPyHtt9ak3scO0r77qR5MBDLPltszGoUt7WgXp8vZ46KSF93wRNAOa6QwIZ0iF2qjFHuek7g6W+03Uit2pSVBgcSEeDovnta1RJUCOweRWGC4F8FHrQVg2vjmzcunG6UhLvwA+IF4B6gFDh+qpOtNvjFyFHfLMqQb9wLarndtP8ZVVMVlm0e/Ef7lHVUAqbviqi660hfKYpIVBUEY1vMJaGacsmuEp9Q== 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=kk1VuRS5kSNxVjC5gqUqAVN5sQ5M/Ew4SDikwGYXJCg=; b=LM0vOOVd/T08go+Up7CoYYCTbmywOjCHyHBHT3k4LqXOBxAMYMx/trFsCZ4Kq8tCh8C4mmChdO6f4UzqLuvo9J5u3A30ne9KGCPoDmpCkncQ8deyuQXej62baOhMB059c3Ww3DQWB65eMhPznApNXzjTztYxcqZWOQQ7FCK7LrI= 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:40 +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:40 +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 21/35] maple_tree: mas_start() reset depth on dead node Date: Thu, 18 May 2023 10:55:30 -0400 Message-Id: <20230518145544.1722059-22-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: YT3PR01CA0003.CANPRD01.PROD.OUTLOOK.COM (2603:10b6:b01:86::23) 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: ecdcf175-ff33-4eae-cf4c-08db57b0166d X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: sh+maO+MJ+D2kakE8yMdjywlVS1OOYEBmMHJ6xzs47Dta+Ww91AQ6xvQ7yP2vpYcVV2IKHkpyRG/QysNcIcsaUnRlcemZg7Er/94g8iQkKkJ4BDB7tZ+Ecmq2Y9K/FbtV43d6Zmdxo2pIk+PPLvCAGJ2eP1szUjvbS2aTiFtqAZSQHRgOYYahe5taWUFwxI9UyHPmS5Kk7imC8XJN0hU0Vegys+iC/62tZ7JArn5AD2uCUKsZpUfMaGTgEQsSscEGNgzW7DxHr4r+rIYXfxzXl/ASavqluMn9zluvXtYnqdX5fBDwKmiUqXADv+d7ZExdGNEe2lV4Fid/4htPg9mKW7O0V9238NYXM6jugil4xJacg87XG1pG81vPAnjVt1UlD1E7DODk52vapenqjaU3XfakNLCcheNki4W90+Ry1iqD13zPS0mDh+TEfojHaU30J6Xf5i23Zsi9iC9DN5ccHEd8bG8Q0auo0xOWCNA/OlpOpWib1Z955xFItGzLhv/femqOF7qcCvu8NQkRI0WQrIjQke5s+PkIzxqV/TaTXur0BczWHnL67ZLsKgj+Yno 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: Ie0Um6gvSo8/SARPKGN5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8bypwPcyUMq/JqEd1JegVzrKnMo0z1R1U+a39bFdtvJqg7XR5Mp4W/n+7s4ck0HSFBUSRk66C9LuzUWTZ0Zpc4AimKNqo1SK1naWdxVXQTS23OmehLgBVk3TYBSSf2g1Yc9lzCXAA+f+Stm+35BZdbAmQfUxLmirWury8fHjrmqMLwwDGDTVZIfMbpkT4IJojuZnlzql+45qZplqnsi6mDlzKea9GpJze3VhwRhXrMiEad8F2kkA01OuGk9GrI0JEn2DQZJYRX5+zGyo6rP0u12bVgNvSGDI3/7oHnQihz/nKKWzvv1jihTfWWwGqIzSKMtc2U5y9f1stAvfOsb+l0nTdx015CPRbFgvxqkF48Fl3rpzHCXpqc7A2w/0r4GXa6VlcSkhe0IGw/+mowK1OdgoTQ5TBgo1/hehSNRE1hWVYsTFYr8VlcvOet+JrlnPnu02hQmkANa7L8ustQcRyUayVGWklgnt7K X-OriginatorOrg: oracle.com X-MS-Exchange-CrossTenant-Network-Message-Id: ecdcf175-ff33-4eae-cf4c-08db57b0166d 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:40.6450 (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: l1QRjIvdwV5wrrRu+eop6kYsZQeWmkQRpd8QsrUECTeUSxhT+l31Y1m79hoIL+x2QKY2Tt+05pnkUyS6F+7lzg== 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 spamscore=0 mlxlogscore=999 malwarescore=0 bulkscore=0 adultscore=0 phishscore=0 mlxscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2304280000 definitions=main-2305180120 X-Proofpoint-ORIG-GUID: JAAlHjXfQgd_QeHHVr3E46svQe0rlBK7 X-Proofpoint-GUID: JAAlHjXfQgd_QeHHVr3E46svQe0rlBK7 X-Stat-Signature: wt176q6n337eabkwzz15s3yzjqfebsxz X-Rspamd-Server: rspam04 X-Rspamd-Queue-Id: 25D718000F X-Rspam-User: X-HE-Tag: 1684421818-681505 X-HE-Meta: U2FsdGVkX18HZeH3Ic6JiIUjzs1rfE28gQpJjh4A7sAxCHu5DCMe7KuZTeDT7UdrtJmaYtGL/4WdVhVf7FrxIj68b7zwJ5L93pZ49JJ2f2ggr2OPEHb4e4o1PVDXBBrDW0Htjx8pZKqD0ARgTAFwqKtM73CtHg5HLpFpu4dKWPTguE1EcqaLL+fNYgxJ6MW5djVGCRuwJR14hU7wibPDWWoWOQTBTZK1r2p1k/fld/XrtVZshcIAxEXpFjYjZVf7+zMOPohol7Rv3XtwrQOh8YO46t5KERZNJnYfqCvAXB5qXsWYPIsir2bJJI5eeRLLDaQBnr3So/BJeVAoECI6JSkPItQGKC3YwicR6gIOz3C4j1AFW3z/X2yCOXv28Xi+71zBbuHq94aLcjG9dY/QchFqJYDbh6lXehOsmP6Fv2P1HzoUpkzf3D5Lv1DS0W4p8AItWmKrxkGaF0VLp+Jg/fEOwdDxTekktHOeZ7Hi0OTvlkjTcLJRRvpmArJk4A7wdNhdfTTRSlIcZ7ACaXBIaTWNvEwE/PZqiW3EvkQsQ0WtQw4jZnp5n8uucyq5WGt5FIQ9KgwL7XZTgBZchpMq9cReJxU3ZgrBB1UCwpeNpnmAhssCm1dG6rUOzrcOCypHz4PPuxN1TI6p7LyX/XBYdlNhuL+WTgNcoeolCFl38WP2mKrvZ0P0QqzxkzrAWImyzJWVedb+Q/stYJsZr4aTVrCZIB/QiCPa7zKXAM237P0RVDuVv37Z+1gsXT1R1aNmt3joZacHV3LeHlKjJwq9KyXrcKZP+ANlJJr83opoTHmUwEHIGe8pIIxY+1ExRYvb6PEYUG+qG9zbYg7mUiziHF/VTpmn/Mg9zxQHzavIL1gVgmHpQBYODRe0Q5BYfcvzpUJVGdltJMN/8200fP6C8BJ523iwkesuGjv3g0DdU11QyuN+0uFktUf/FL6dBR4Gzti8A49I4uFAqhc6mTf 1m5JKeX2 xTO9STXZ2SPp0DJR1bNWiOpaO9/mJ1Ysac+a1mw1O2dFHHtCNXC1ghThUfiBcO75aL063X6PcojpGV7vvsWa6cwiWga8Aaw4EW+lIR3UlHK0nscilM80U23Ih7I7LkhFb23vrXS/XGf5XuLtoltpPo/9Sa2GxAU841xx+eRMyx2PC3WlUlapq/Qup5El1qoZE+YOOLW+QJ2bW0/mqcoq7tFRHmZKIHeihQcXJumV/Db+tNOzOAdjBIHwCc7w0HoOxnD/XTcqJoGPJ3kPlnyRSNNjd8qqjp5YePp1BCtjXg1IiKbyLoc7jstiUHdRaN04yccflqkfRVJQBEVHtpYSqoUfULHjPdt66s2r026Tl7thMWeSafpa3Qk1DKHD4f0UUHi06luBhzUm9QRtDhkeLuAsQmDVSY30XsMHtdovCxGfkyKjFlnAnO60PW+7eN3C7EXOPKrPsNxIPeUBxibWq3yI7msafGWXr3zDTZIBrRVEJM3g= 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 b3e5ae43ff8f..e233f41ed4da 100644 --- a/lib/maple_tree.c +++ b/lib/maple_tree.c @@ -1396,9 +1396,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))) {