From patchwork Fri May 12 18:20:22 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: 13239630 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 9CAC0C77B7C for ; Fri, 12 May 2023 18:22:03 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id 3117D90000A; Fri, 12 May 2023 14:22:03 -0400 (EDT) Received: by kanga.kvack.org (Postfix, from userid 40) id 29AD3900003; Fri, 12 May 2023 14:22:03 -0400 (EDT) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id 0766590000A; Fri, 12 May 2023 14:22:03 -0400 (EDT) X-Delivered-To: linux-mm@kvack.org Received: from relay.hostedemail.com (smtprelay0016.hostedemail.com [216.40.44.16]) by kanga.kvack.org (Postfix) with ESMTP id E4A3B900003 for ; Fri, 12 May 2023 14:22:02 -0400 (EDT) Received: from smtpin06.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay01.hostedemail.com (Postfix) with ESMTP id C657F1C6CDA for ; Fri, 12 May 2023 18:22:02 +0000 (UTC) X-FDA: 80782422084.06.BBE9442 Received: from mx0a-00069f02.pphosted.com (mx0a-00069f02.pphosted.com [205.220.165.32]) by imf15.hostedemail.com (Postfix) with ESMTP id 361F6A000A for ; Fri, 12 May 2023 18:21:58 +0000 (UTC) Authentication-Results: imf15.hostedemail.com; dkim=pass header.d=oracle.com header.s=corp-2023-03-30 header.b=p70VyN6C; dkim=pass header.d=oracle.onmicrosoft.com header.s=selector2-oracle-onmicrosoft-com header.b=YgCPuRx0; dmarc=pass (policy=none) header.from=oracle.com; arc=pass ("microsoft.com:s=arcselector9901:i=1"); spf=pass (imf15.hostedemail.com: domain of liam.howlett@oracle.com designates 205.220.165.32 as permitted sender) smtp.mailfrom=liam.howlett@oracle.com ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=hostedemail.com; s=arc-20220608; t=1683915719; 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=3J4pneHi36iA5e8D1W6Sbr1hFtHWPs0j8jYZRtGOe7s=; b=3IMYwmCC/Ry7ewWR55wk/ni82aQaH5FXjp2p35s/zOC6fmQAPlBE93+zWKjbCBEuHyEQtN yW1l1u8ilbZD2stnE0T5aKNPKZ0+8PuPqBcJkw1313LjR9cDFgGSRurntXutSlOH1MGnx2 eNQh770k41VL2cozCqSfEwvRsIqrnWo= ARC-Authentication-Results: i=2; imf15.hostedemail.com; dkim=pass header.d=oracle.com header.s=corp-2023-03-30 header.b=p70VyN6C; dkim=pass header.d=oracle.onmicrosoft.com header.s=selector2-oracle-onmicrosoft-com header.b=YgCPuRx0; dmarc=pass (policy=none) header.from=oracle.com; arc=pass ("microsoft.com:s=arcselector9901:i=1"); spf=pass (imf15.hostedemail.com: domain of liam.howlett@oracle.com designates 205.220.165.32 as permitted sender) smtp.mailfrom=liam.howlett@oracle.com ARC-Seal: i=2; s=arc-20220608; d=hostedemail.com; t=1683915719; a=rsa-sha256; cv=pass; b=anYzKBvTgtmk94+ECPb3tTJ8/h2YSTmW36HdJZoC0fiDyZhKTzBJ8ABzZNL1JzJBiIIuDi fzKypgga0mgFM2/yr+CXy/x73Cmc+/mD1ZTUKGx4idjYATJ8mSHft9pQhE2Prz+mYYehdp 3Ric4YiAt++6+wr3JZgN4HT2ZZ04gZY= Received: from pps.filterd (m0333521.ppops.net [127.0.0.1]) by mx0b-00069f02.pphosted.com (8.17.1.19/8.17.1.19) with ESMTP id 34CF4Rco028673; Fri, 12 May 2023 18:21:48 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=3J4pneHi36iA5e8D1W6Sbr1hFtHWPs0j8jYZRtGOe7s=; b=p70VyN6CUdX8XYkDwGnnHQHjnlslrOOckF6Pn1Hvievkxypx/W2m1zhGgaqu+QKCAFn9 2HLLzdrn105fq+gkO+lQ3eXyYLNdt177vCMGW89vB/eobzq+uTeWfettx1GxARQwuBBz zy6CbVUJJroDRsgous6h2mtwQIWJmTKzit/JomqKWApvoh5rwI7d09eWEsHspI6gB50B XOpumzrIaBY4H096M7eIT7z9rzobzrUftWNLbdfTNGfR8Duxvm0do3gLVE/LiJPrpdZK FgAiLQBOn7rcbtHDp7qMf22A8aiNu+Y8hqMsudmcvq868HyPPf2wPG8B5JRxYkBtBOA4 JA== Received: from iadpaimrmta02.imrmtpd1.prodappiadaev1.oraclevcn.com (iadpaimrmta02.appoci.oracle.com [147.154.18.20]) by mx0b-00069f02.pphosted.com (PPS) with ESMTPS id 3qf77dknmv-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Fri, 12 May 2023 18:21:47 +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 34CH3b1s004415; Fri, 12 May 2023 18:21:46 GMT Received: from nam12-dm6-obe.outbound.protection.outlook.com (mail-dm6nam12lp2175.outbound.protection.outlook.com [104.47.59.175]) by iadpaimrmta02.imrmtpd1.prodappiadaev1.oraclevcn.com (PPS) with ESMTPS id 3qf7pnt5r4-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Fri, 12 May 2023 18:21:46 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=B3X2Cr9yehOQ5DaWkEMJ8VbtmXz2Ho5VszsbDmmF/Mt1/UnClXObQLN9dBOTsWkutrApdsxieMxv38Gs0faTHEK6JiiPh8UsZZQ9Qlv4jni6DImfpUplAE1QuU8aZ6sf0pDPenL7DANBG95NB5zq3mRimGc49QvEF8p+DJZmQocNgn1BMQC7JV4FmBX5uLVCwfjFTa/o0YPPW8XJhXZqgMWrfGykVls6RGmcHxRfkI6a6asjMlqdI1IZwHVHZHXtWd9cIOOclkSzCxhziCmzGWkv+cPtCat4ioO2i1tPsWqBwQO0ph/GfEXuEiVzDEtO4apoGdhiA2SPr5k36hjhww== 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=3J4pneHi36iA5e8D1W6Sbr1hFtHWPs0j8jYZRtGOe7s=; b=clUaG7qbRfRyGUrL+tz7kXhZT4ADejf769MjQ/AwwtHHpnTH7VoTgQPX2twhCZ9zpX9H0GSPC93qgWAKDpFj8wd32Z8g4AHNpb/O4caiMMHQihJXat3jchVc3YSGYxgIcx4yxAZTLM4zgsj1z9cac4CbjpFF4Lu66BkC2yDX3iIARqJal3qu4OQtDyK3s3DLHkf42ZC9G7ynr052C5rzaLleeK5DFKX9Iru2/W+5tfZC9SvZytmP1961QET3gAS3UhGvsECTmQlAX6ylzwn2hBSDDEHFNZiBwsBtEyOJyFbRFmC2gw5DWiPh9WpySRB4/GrAPHOx6A9GKLw6XOI61Q== 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=3J4pneHi36iA5e8D1W6Sbr1hFtHWPs0j8jYZRtGOe7s=; b=YgCPuRx0qzhKOZW5+2cj9198GftUrMLTgK+bF9I1knyX7diJH5G/pQjsiPN2VxuOkfDv8TcngZi4Xi3MXBO96JPTT4+6Lqq+6NVE0xjpzWa5KK2K1sLkKO6CZkntrFDPdGEZzlfpsiyjCNyUNbbkeQJQ1mIzmX6QNy+3fXdoA1g= Received: from SN6PR10MB3022.namprd10.prod.outlook.com (2603:10b6:805:d8::25) by CH0PR10MB5211.namprd10.prod.outlook.com (2603:10b6:610:df::14) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6387.18; Fri, 12 May 2023 18:21:44 +0000 Received: from SN6PR10MB3022.namprd10.prod.outlook.com ([fe80::c478:d218:8f15:37c]) by SN6PR10MB3022.namprd10.prod.outlook.com ([fe80::c478:d218:8f15:37c%6]) with mapi id 15.20.6363.032; Fri, 12 May 2023 18:21:44 +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 v3 21/35] maple_tree: mas_start() reset depth on dead node Date: Fri, 12 May 2023 14:20:22 -0400 Message-Id: <20230512182036.359030-22-Liam.Howlett@oracle.com> X-Mailer: git-send-email 2.39.2 In-Reply-To: <20230512182036.359030-1-Liam.Howlett@oracle.com> References: <20230512182036.359030-1-Liam.Howlett@oracle.com> X-ClientProxiedBy: YT4P288CA0079.CANP288.PROD.OUTLOOK.COM (2603:10b6:b01:d0::9) To SN6PR10MB3022.namprd10.prod.outlook.com (2603:10b6:805:d8::25) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: SN6PR10MB3022:EE_|CH0PR10MB5211:EE_ X-MS-Office365-Filtering-Correlation-Id: 1758a05b-93ef-45a3-2a98-08db5315bd86 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: pTluZxZor43TbNBSSFAHDytdII41oTgVmIOBCMBB0w9iBCyjaXUtzLplaVawDRlI1Dwh/6FSm9QWlynCeqOiH4svxHR/alAvz6926CZ9uSrZ3Idzfir6t8m58XLVs4HRTO3BUQDk8O5Zy8Q+XjKZadvHdr1LrcRnzyebAaxNUzJD+3g+BELqeQvGeq+gmzOMLw7arUsDbq0kxCoy10daGCjs6w5cpDS2JhTcN4VGZ9PO4tCjANeQ7r+C9gUwhNGQ5Bh3Gy+7qA1f+hgWdB4zzCmsVm3reEOxhLna3sRBZ0FepE+QsJjtOHeLGKWdh3yCt2wUzUViJkXivaUJuWbndh1mN09fH3vuJNs/RkGJOLFF6Ysyfl/KAqZu1i87zTJ/DwHWasrU5sk2OERRi+Cy6vI/08Ih6DZpcgpqXVvX4P8s9hB7oTTVWXOLZ4ygx+e+QxCe5PF9KQThNB9ozobeDgK84tS96KgQBwgGVRlgGm309xiXCrC5j7TpCqrOyN1KSopB09CHHFFYTLgKmcZLcyHniw0Bp3TchNlDMlrYdX24DU5SXDdOndjkaXuE1Jo0 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)(376002)(396003)(346002)(366004)(136003)(39860400002)(451199021)(2616005)(8936002)(8676002)(6506007)(38100700002)(26005)(6512007)(478600001)(1076003)(36756003)(186003)(4326008)(2906002)(66556008)(66476007)(4744005)(6916009)(66946007)(54906003)(83380400001)(5660300002)(6486002)(316002)(6666004)(86362001)(41300700001);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: Rg5c9Lx2JLioAi4uhrhuD2MKQtW/Sog5in41CEITrHaA0B8SsD1YSiyINY7+qp1n30muPafFwjuh5RX8ZqHGxKWKeXKKm6qK+zPiB8Rcg8US5YdNPV+E1MkWLWCFkAG1YtRfeNhuDYGX47kjlZG42MMlKenemJcECeRMgdv8Ez0BKlzGm3ITTPAjmmc7tuQo2yR+byc2yWl67yNbZU5d+hYTRGUfAF0x6TnGTdIhjw/BOXFScerwkzOJyO9ZkhsiG4XOgzs4oUrHkzYa08rSFVwJzZ8clTrge5S2N5aL/Mk824ChJqH/MYqsyUgVQzXBG23k9O2d47QBu7filHi0v47ebRnz6qFeK0tplFTZ83GzObuvG/l5jSpRhXSeRdRygorsguHITqfl0JKxKJ6ATJ9HNY/KeLIs1hgTY89yRVwMjVC8hcn2ysobw+VVRsWI/LTwv5E3hZOWJAWmEDUkN0p6X3sYVti4Qt8RrebM8aeD1iQOBASgUmeY0ndy6RfQc7g0rupHdbjH1IpuiNplQHkT56mPH6hxglkKmcG5v6jXSz9eWoQeJAgNVLsE6xpN2eDakyySderPycs1P/fHLk94r+kvLjnG4EPZTuMbSR9AmOtlvulxvwJ5hRhECelvKgE97X7ZW67FrWgpoz3HlnwgrgzmOxj/h8oQ2YBk5T5HF4Pk3TrzG2f4vJCcj9zV3n0XdIJ6ou6BGlUHDuQTCZD57dWVVHfexEEZ4uZoggwvjSOzNppiDk8HI8zqSwhVvbDn6joGQcAZMS38+V47nFLm/SPxHb7NrIm3PQs/keU9dZPbcbiAWB/sAaTtlqnt7lIwN4WsKLZ0XitovgMHMK2auvLN2xF27Bhk3kcqFgGVARw5p5uwDZt2eLQlBuMa/ifeuac7GgiUyXpSfhBp0agvZBMGQQokpCAMf8K24Ky8QhqJ4EP1NE2yEGOks5Znioe0eBDivVwOB4T62iCLUTAfIjWxiRqRbrLXAj2PxThDW4lyC+mGQJN1azANpexe8u2EihTrt3Rgb4P/pw/bI2CGPkvmdePU4E812ED1ycM7mqAYZWMZbgnk1u05AURYOqgh4AuHbA+0Z8c6pRl6CqgxvWZ8/+XQ483vW4wR5Oz/1c1HqS6nlGNvjjCN5C4K+xqygNjd5ynYkQ0NNDFaSp9qz66kwWzPWeOW2XLcsHrW8ZbQcyVGH4LoZ68+7lH8WEicj5FcChgFSjlLn8XiN70KhHAAQnAIZ+cvk+5ZseITrxc/d/npgXjluAllKhJnLm2FQWosVRozKoBPaSUI2PnuMREKYA0xgJLphJegouq70uOY/i2bwmBLY/ul51q8gyImTiRqRVYXU6HKTcd0N8LpXqddBAyYYgLLEWdngQlP6d22pqaHgH7u+P75HQiiQiqQqNVH8UPNbvyS2pCowB/JyiazMcHk099tsXCdPg3k2dQOztavb/uOCV9q9apbCbiT0meKZ0MLjdSWw4DYFETJxDvd6RREFD+0cpGspWm2aGoQrDbkLNv9uRRi7jkean2OfztWQCKzalI70FHVqkbLx410msFhD26w/WXwk4pqhS/doRl4In9eJw/312VPDetz4bZnb65fk0t4fq0qVg== X-MS-Exchange-AntiSpam-ExternalHop-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-ExternalHop-MessageData-0: dmVE13x5kYy1gCXNuw3Id93sem6Rwg9M3nKTYkjey+3BWf0jWVEVM+qWLQfztiMDkhk5p8jOhLJEK8XfOrw+xRUsQMrZMjPNqldl5rjXhcf94ePt75ujH6U+vUn9c7+YzpzxR3K0wGPhXqVllWL8AhjaxCxNRn/jVkmvTeAResp1MZd8Nv5BATVUHmcdeKngeQ+GMUyeeYF6JPyvYOc8MjceIc74OepqeS7rphA+fl8v+teiTesU3bj3a4kfAUk805UlaHvMRJIgPknloqXekstguCNquIiHBC1mGQJwnOQ2OFor8WMWaCv6/xHG6wo3vg7hqtz/pCPelDguE1deqCUSKjCIVBHsjSrGAhuv8bO804fnfXGP+J+uj9iRRaDRiO1187OxIs+ouCLnXoYQLHtiEqlonXNqyxOat2A/sOURl2E4rSSUZODG7ZxTz62BYXux5nbmgGQ4/FBmy/zuqT+MvqG+5dVliRhAz8X1sCTKbn0gGUDb6CwSjomoTnqOekuC8lZeaDkMxCx1jgQ9rLg5diQ/n+d75NyomMUqQICEzqDKcYn5kHS2l+azn5GGXedKFHsUrxUwQBoPWUGCrvprL/grdW6JK08I6HBdyuL2TyCVXx+7qNaAONjkadswWiPiu1qBmIXT03NsIrjIrSmfb6+vBXx9bMTyP7zjr1On2GSRZ+QKln6ux3LJSUGJ98aL4h/H5UdCRQ1ITZlw9ZYaoz3VRkM02GEoETCPv4yVsk5q8qo23kN33D1x7mf2kYQdIlARDfA6zNz79jAihHSJxzHeokEhrMbQzgCHyBosabIniho+8SaBTAALgIIURGBkfTC66T6VKUpIz7JLWGLWBenKHymMeaE9MtEUQ08jiNkz4AIExx7Ulgmtf8hPUoQicmc6Sgt3lDtt1QfgAwj4IAH16tYjCwyd6/i+ll+7KugIdb/06d88DtEQGjoC X-OriginatorOrg: oracle.com X-MS-Exchange-CrossTenant-Network-Message-Id: 1758a05b-93ef-45a3-2a98-08db5315bd86 X-MS-Exchange-CrossTenant-AuthSource: SN6PR10MB3022.namprd10.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 12 May 2023 18:21:44.3045 (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: xa/j8Qt1rkUwsFGTGx0SMCj3HHs0N08PEpC5RjWHNahPxkGCX1NC3o/DdeidkrFC3PNx4nclLVvniNBeML5yoQ== X-MS-Exchange-Transport-CrossTenantHeadersStamped: CH0PR10MB5211 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-05-12_11,2023-05-05_01,2023-02-09_01 X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 mlxlogscore=999 adultscore=0 suspectscore=0 malwarescore=0 phishscore=0 bulkscore=0 mlxscore=0 spamscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2304280000 definitions=main-2305120153 X-Proofpoint-ORIG-GUID: 2Sa43_sfqGh5WLDUEQkRmckLBqrttquT X-Proofpoint-GUID: 2Sa43_sfqGh5WLDUEQkRmckLBqrttquT X-Stat-Signature: h9cepgatttxpz5ugotzbteu151omedbc X-Rspam-User: X-Rspamd-Queue-Id: 361F6A000A X-Rspamd-Server: rspam07 X-HE-Tag: 1683915718-490537 X-HE-Meta: U2FsdGVkX1/pKjDNLDfIn8FjJg23VHfJx6iiez/AeOUpU5S+K8o1IdzZjJTGMi9QwhP94wMDYXimcruCxjiXOmaZUj+RgAt9v/phtWlLe2GAWaM4HGXv0aaIxvO1Tv0hQcub42ZzfjZcXzGr9XrOitKV9A+M4LdEu7EeTyj81taTWOvRM9K3o4frJKhyQ/yoKElJbZpcexdpSfsOlFG6cTbauvcevW8BDLscbma8SsC70YUJF/JnAROKaWukR5Ry+Gvqr1/PhqMBtaJXhiCu2OobJpZV5CrZzINtI8AL+YADq+B4z460DwVxUeqgmQ2XiIccoflt0ivkVw6hzjYJ/psZMHcZJMx+nGpsEnMPeb2ikn6wkPyKNFO6f00aNO/voWsxYEmeSj/yfgKmBuy7P/iYN6KSOWDIZjvumwO11MOEm0tf6vZ0XWyWHwcyhDEgPNTkeyPlEauv3HJUxFqgt/QKTgx+NyhxOO8AbXEHZzm5kACcPdfxQE7qCWGdibI6qEygYwuh5gjtsReCjhGOuxjJdnAEeldjYam4wm0Cf1drKTs9KqC8d4Dl499qU3I9uti0r7Wft7yhzOBSfFD2e/CpcnE8H1CkqmwPmkSpkvYOapk/n7y3wi6Htc/bCyWz5NFB/X7acKyAPsTbwBC3E3IrMFQYKUODxDO8NuukWnkoXFTEd2NcgV+oDrTaK/dsvxKNoy2NMXQ/h1Bg/FJw4hk55Gf49OAudrJW3OQKmrmE9Pj2l2OR6NaoisiOJVg3Ch6ag7VF7SiqFewoTTeDeAVjERjOITWm8cUBxbqqXHONlC3UWVOK54OOQ0m0zpsBFGKf0s8RnxRk2z6EIpTMgGAFgQjvj5i7+QPvbwGNQEff2/+AP13WJ1OBdFnN08vM0vAkCyuCGqrS6CtUhQmGP/on2Fiu2pMHoeza7wKQesUZUW2nZg4Je/Rir8bdSApknLcDBwr87fzQ+qZ8B69 cqkW0ulY J6ro4M8Y8xZPcySxX7UwRtqUsYLYp54dCwmqgbRNazMAXi+SobVwOahXfZAyiR3k18X78ZlZ4qMKDHwnZBXf/1iemGUysTigVPGVX+dvUwXc7iCoym7fmZpQY0zYCiGVAjQFpkUkmwvNCgbbSRLnsUVpg/8P4wRtfJV6hES0VqJFu0hmQqXpXITDgB3hTBTaeNWYJS5c31KDXeoixubLKD90IJlYLNMTjsfT7SpXp8BAXDXQn9+2LXjBDhvZv5NO6ZVZOyhwHs2BTp9FIW6TruktE31+d6mcNyZ3d0CKjIv6DGeKTpXw+4xKiX925cw1HRfc/IF1u6afnvRD63OjDxSU12YYevd8SCsMDF2Cy4zc4d1HM7mW9ZN4vIIW4KEX9dT0XDJgNQ81KKRMXVEuIidFt3dqQSTSzINKlkcZB/V1574ialoOXQFlbFYs4YY8+xCPQ6g1hloaSm0KoLOdh/P1ZOM2hI12wesmz 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 b3e5ae43ff8ff..e233f41ed4da2 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))) {