Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp35529199rwd; Mon, 10 Jul 2023 08:42:10 -0700 (PDT) X-Google-Smtp-Source: APBJJlEXDogBZzFcJNwgYNhBwJJb6LepU4ddXdIZq7ha9wY/1UNklr75cZZ21+y3LBcPqe9Fd+tj X-Received: by 2002:a17:902:7087:b0:1b8:649d:3652 with SMTP id z7-20020a170902708700b001b8649d3652mr10485215plk.32.1689003729567; Mon, 10 Jul 2023 08:42:09 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1689003729; cv=pass; d=google.com; s=arc-20160816; b=eTNvTsIgwuIpFmq2O+f6nGtl7Jt6tq4usko8VfsP2MT1y2857xPGGSPUhP0oenM8sv 3+Ue7nX29aUrUbwsX7VA6SMK/Klloiab1Wf7Pu/ETn6vb+CjGbvC5VHf3StaadkDRbpE ec/E+PFrKEBof7QSXYWh17LmLzjOtM6gEj48dgQ5sqqf7twKm2k1bS72nU+ndhOyHF5l dUAdgzAq9i0ln5blry/FOfbbxlup1QF3RKzFZwjOeo8UKXpmCw4rBxiQLMP0ooLXifC6 sZiFJkCPrnK70WJMJ2R1zNjg/4mmQPrHhSbdfBi0OW2p75uhvmeEo4fttmMcN/aBo76P nI3w== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:user-agent:in-reply-to :content-disposition:references:mail-followup-to:message-id:subject :to:from:date:dkim-signature:dkim-signature; bh=hol1y0EGm7dLNslOCZS1525/3fBNRu2zBEU2QZixxj0=; fh=oz2ZsZKBA7gDgmIiZR257ogdEkPH8T8W9fU5JfCmdI4=; b=N9JVtxTu4Uwv+cXB5plFHSbygexyo6GtekJKSXjlWT4R/nlRbOYRC5JTL6A7LGX6hn frjJOhzcx+p1rraQpqDy7NmW60AoCYTrzMX8XmdmmbDSJp0t314/hFvvyOgIx1ZP5Fez TjoME7TYFP9Tftmhbbrn8kW4LpL8gQa5u0eJvuVvYl4SzNDAepUHaGiZFp36Wsd/CWik OU0W7a1Wj4dVgs286Qntwf1dxjEySCum3m+umBNXqg//410jIp1ZwTVF7+w44OaYlxoa LhWVFJ39qMi4RYQS/DouSkkmHAVNB0Yq6eYBTbk6ZaLcI6FOrRYeL1pe9+LwP4Odr0kF dbyg== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@oracle.com header.s=corp-2023-03-30 header.b=MlbnMz+X; dkim=pass header.i=@oracle.onmicrosoft.com header.s=selector2-oracle-onmicrosoft-com header.b=O0Dz70QW; arc=pass (i=1 spf=pass spfdomain=oracle.com dkim=pass dkdomain=oracle.com dmarc=pass fromdomain=oracle.com); spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=oracle.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id m16-20020a170902db1000b001b87b17cfb4si35394plx.392.2023.07.10.08.41.53; Mon, 10 Jul 2023 08:42:09 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@oracle.com header.s=corp-2023-03-30 header.b=MlbnMz+X; dkim=pass header.i=@oracle.onmicrosoft.com header.s=selector2-oracle-onmicrosoft-com header.b=O0Dz70QW; arc=pass (i=1 spf=pass spfdomain=oracle.com dkim=pass dkdomain=oracle.com dmarc=pass fromdomain=oracle.com); spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=oracle.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233442AbjGJPGS (ORCPT + 99 others); Mon, 10 Jul 2023 11:06:18 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:34902 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230284AbjGJPGQ (ORCPT ); Mon, 10 Jul 2023 11:06:16 -0400 Received: from mx0b-00069f02.pphosted.com (mx0b-00069f02.pphosted.com [205.220.177.32]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id D71DACE for ; Mon, 10 Jul 2023 08:06:15 -0700 (PDT) Received: from pps.filterd (m0333520.ppops.net [127.0.0.1]) by mx0b-00069f02.pphosted.com (8.17.1.19/8.17.1.19) with ESMTP id 36ACcHLi022902; Mon, 10 Jul 2023 15:05:39 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=oracle.com; h=date : from : to : subject : message-id : references : content-type : in-reply-to : mime-version; s=corp-2023-03-30; bh=hol1y0EGm7dLNslOCZS1525/3fBNRu2zBEU2QZixxj0=; b=MlbnMz+X1QBb9gELx+6rpuRsGANRh/DWmEzG3gVQbhtrCd8u+/ugPHhauBCSfZZH3aOJ Aq0UZnQwFunY0gFeajvyK3/nMF2dcv1b+nusNg8rSxm2HL8pdUzAFJ7xkTcyspKx1n5i QIy0/P7UHRus/Uzt5STDqOMjNWVmPR8T1vARUjR1SrbwVegWbMHqUL/xZ8PiT4tfgy/c dya8gCJiU6UPXxGDRaEWW7hu6Zum6itFZ8ruDPAP4Bb2t+XYtmFCnhvB7oMiIT1cwPiZ iWsJYkJzlgUNBMzt95O0Tk93C+Aq849OooCjB4DmHAjOgGjitbITSSdZmgBcW6dMMrrG BA== Received: from phxpaimrmta01.imrmtpd1.prodappphxaev1.oraclevcn.com (phxpaimrmta01.appoci.oracle.com [138.1.114.2]) by mx0b-00069f02.pphosted.com (PPS) with ESMTPS id 3rpyud2tfp-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Mon, 10 Jul 2023 15:05:38 +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 36AEYmLK027326; Mon, 10 Jul 2023 15:05:37 GMT Received: from nam10-mw2-obe.outbound.protection.outlook.com (mail-mw2nam10lp2103.outbound.protection.outlook.com [104.47.55.103]) by phxpaimrmta01.imrmtpd1.prodappphxaev1.oraclevcn.com (PPS) with ESMTPS id 3rpx83ka7g-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Mon, 10 Jul 2023 15:05:37 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=Dhu825RiYC+nmsE0I/mmPQ54sGwKyS1/sMdkRK3pRdeuSPpxOPz3jjgc0uQVjIVZWGxRrB5tLkQp5NotK19G6JXnb92unzfAzWKrNsLQmrdThE8JdUYNrq/ZAT2YM5BEg6MrSveKzc8GnWmItEFRH7fiHQA7qwNMrGgaR2Dqgh10xr6YyswtVHtEYOz4kKxNPByvEAGoc2im6Mj0hgZQmenL4FZFMsJd/MUXm64hxg5HlfxUbl6dc6DZe3cXYJRC2836o0F8E6MnZ7H4eq06i+rv4GXaErbWP6l5jr68VTYmG1w645I0YiB6guUs5gPYV4EoA+7iN4rM19mSeb/jww== 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=hol1y0EGm7dLNslOCZS1525/3fBNRu2zBEU2QZixxj0=; b=lS8VTsk4PJ7FR1Wp/hSc9JFyd5yV4BVaVc9W+xf7BIBmKnIJUD+rwwZ/Tobxc8MJIv3yz2r32c5vhUvP/Cb45nH3LIUq2RNmlE/A82U+QKUBuEzgXk73qeyvIS9tyqwTSBk+IIJgMs0e+CGu2pnsMEOTDv9J+v7NF5mNcRjtGLVCdoLDbF1b8tmwzYnGROZmLXx/o7pN+AAuXAAb7R49QRmJ2SuwXINJb+qeLvBJq/5eSf5XvnEN8jEzLLHXgDzfTsVh/L3/BQa7bCQzl4YTB6g7KN9ydqTPxmIycWcogurs3JrPr3iFr8tyBk5AkBiWiszy6oHqZPg9Td5HXzGWzw== 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=hol1y0EGm7dLNslOCZS1525/3fBNRu2zBEU2QZixxj0=; b=O0Dz70QWnKyMFp4gCnoM81+Y1HiXnKcya7/DnWr0zXKtfQrP6CRlZbe9V6ktJ90/I9MkOB3wBlz31M1c9K73Rd/bl9Ao62h6smvCBGgF909yLcPfng3c4AXH/0Xu1lnlUxudyfvtZHN9HhyymlEgaiTRvg4t559CRLefIy+xbvw= Received: from SN6PR10MB3022.namprd10.prod.outlook.com (2603:10b6:805:d8::25) by MN2PR10MB4127.namprd10.prod.outlook.com (2603:10b6:208:1d8::11) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6565.30; Mon, 10 Jul 2023 15:05:35 +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.6565.026; Mon, 10 Jul 2023 15:05:35 +0000 Date: Mon, 10 Jul 2023 11:05:32 -0400 From: "Liam R. Howlett" To: Peng Zhang , akpm@linux-foundation.org, linux-mm@kvack.org, linux-kernel@vger.kernel.org, maple-tree@lists.infradead.org Subject: Re: [RESEND PATCH 1/8] maple_tree: set the node limit when creating a new root node Message-ID: <20230710150532.hvj7jzc5ep73yq4i@revolver> Mail-Followup-To: "Liam R. Howlett" , Peng Zhang , akpm@linux-foundation.org, linux-mm@kvack.org, linux-kernel@vger.kernel.org, maple-tree@lists.infradead.org References: <20230707101057.29326-1-zhangpeng.00@bytedance.com> <20230707101057.29326-2-zhangpeng.00@bytedance.com> <20230707151819.d5rvxalhewdv62nb@revolver> Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20230707151819.d5rvxalhewdv62nb@revolver> User-Agent: NeoMutt/20220429 X-ClientProxiedBy: YT3PR01CA0126.CANPRD01.PROD.OUTLOOK.COM (2603:10b6:b01:83::22) To SN6PR10MB3022.namprd10.prod.outlook.com (2603:10b6:805:d8::25) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: SN6PR10MB3022:EE_|MN2PR10MB4127:EE_ X-MS-Office365-Filtering-Correlation-Id: b5baba60-f69c-43e3-2883-08db81571d00 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: MJozDpm6eHbtn3hhM1eaASqQ6w7pKFEUrgUdUGkJRYrPQMoQKS8wjCZvxp5C2l/rBYtzHLJsqyi+eFusFgJneJgiGd0Yr62mLsMkbZleoTUQ4EhztOSdcZfFBszm+1qB7J6SM6DwG5EbTFHoXHNgVgflhl1queh7E5MrjFtMtpLukUSxhDkyVfCSfbuVtwnbZRGmBhFaJtybzCHafmafAn8MhqXewZAOLnZSJeJ1rnUV40pXM3fFU3qkq9O1fzRgkhywrvsnY6+yOpMtheVeNN/vOSUjCieI2dLCCS/sIyYPRubq36q8mOribFHZ3/77MGgdIyXCIBH8ItCttEGw4bbU3IIJ0Ozinn4Rj28ZC/0/S+DKILd7Iw7JEOJK/+LKefkMQ471G0PxBJwkO7Vg4TAq1KoM0R93sKzHHsQmMXy4P54oDQMwXX/yRJJrDPXouhwkkK/il9F2ZGPxf+Xferkb3FpieytIuZch94fGBwJARMqN41h4VAthGWmYwYyXYSflSoDvy4U/VjSBFROMf2JRWh+BlF+eZLpYYng8DnI= 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)(7916004)(346002)(396003)(39860400002)(366004)(376002)(136003)(451199021)(86362001)(38100700002)(6666004)(6486002)(33716001)(6506007)(26005)(186003)(1076003)(966005)(6512007)(9686003)(5660300002)(2906002)(66556008)(316002)(478600001)(66946007)(8936002)(66476007)(8676002)(83380400001)(41300700001);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?us-ascii?Q?qu2z4Zk/y5ASg5ZcVNoDH0kHPjNygRGLATK1XyRKEmisXhbbubqVzQkX5DaP?= =?us-ascii?Q?b3iKQT4xpMXQqE34k5h/wXh9HK+8MmKam+21qBOagjcTJcpbrXrR/Qi0eZef?= =?us-ascii?Q?OO7hpK4IXldWt7LhVlHh1oPNaUtPOgqVO3d2hakIv6Kab3Wzu/0Z6lqDkVGw?= =?us-ascii?Q?mBY3Ta5pPv8NUGjVR/NY44d03xFT3LF7Va7Rk0AGEXKqxRIJqP47L4Ay/P4E?= =?us-ascii?Q?1Zfkoqq4/uouas+jq2moGZ98l2SU+K/FUPFqdpU/kV6d5TVZ9wUn2XGHf9BB?= =?us-ascii?Q?AXoWynLmGkxU9xVX8+3YSxysT1UF+h0xOQHe3ux11eyXRWTbYyzIhqyot2PC?= =?us-ascii?Q?xnCPPbK+Y0KZbnNxGBYOLrAhc3SNy5buivLRbv0E08ijJndoZZSkQgAfb1XA?= =?us-ascii?Q?mjZZsHKc98l4u2MvtrVSmqL5rqbg2lnvL3MHE9opc5olzb6v6Ad0VypoWUal?= =?us-ascii?Q?kphHIAADkI/wAH1M8xOT9s2Pbj+NKsbWKjTaAQS9yayeM3icY9fxm9oDpxQF?= =?us-ascii?Q?/UkeMwC266VSGrNV/hcGMk5JAznAMfqvAvGym1Hons66NdpQdqnu5x4/mBDG?= =?us-ascii?Q?4xqpWPhe8X8jftrfl7nEzeJFxZ5aAf9kxUOyiXUs30iIcEXXc4fp4/FJFp3+?= =?us-ascii?Q?Fz5Gzc4NI/FED6R5gZjcO5JGaj0zDhOmFWtEEEVeo+1qN7jDi7+T2zEFOyIG?= =?us-ascii?Q?zEMRF4jGM/83mINeAvoATBxquFIxoEMKkA00t7Y3y9UX5P2ktVDQfDopPyOu?= =?us-ascii?Q?E0MViEWMfcPjW44TT03LPcPF2BTutkOGvKFnwG4QJC4iWBBkDpyPM49weflT?= =?us-ascii?Q?ROu3jlHeTATUiUw50PqZh1/lQINYFPlm0WfBkdupEwXUyiUBgnVmQ0MN7DcM?= =?us-ascii?Q?+2u3+mWYOr82Qxm+gbyqHmiOo6hGmVy7erQbaoi0JFoeb7JlNv3mfe8XE2P4?= =?us-ascii?Q?N71CfHSC2YkdyBxuMHkSCJqeeUTSTa9wjJZAmMNYX0+3ksTd75VwubxWTww5?= =?us-ascii?Q?w8A2yozHtEUyoc1FYm7Dnr+9XIDlcyy9iG5EUtP89E0Ka/MHG4bC1EE5ZFHV?= =?us-ascii?Q?byIk9vtbmvf/V2RrbNhEInsAYU+ItKfqysvO/4n/xhtcttdn+wRL8PZCjcqt?= =?us-ascii?Q?TzxRw+HE5BunfKM4gdJmMywvVWZ7Q894smWkE7NWoBmNMF1kbzAM4SV5bmOZ?= =?us-ascii?Q?PJfV5tuwNzpVhafCtGBBu3Ro9S6BJpkX79OeYdd/DYCGXmBwSxgDHgWqeHg/?= =?us-ascii?Q?d/mjJ9QusuJ6hiGCXjd7bH4FaCIL5a5dnlz3wHe6goi709gWEX9f/raAu+05?= =?us-ascii?Q?8Ok/N1lO3XD9JS6dzfFQ5ghDZTyywYLFuc7fqSUjXJSTSbfhldgU9u8AohU8?= =?us-ascii?Q?260xAhjJLcwt4tRrFAXsJNjbXxeTIOHgdZmPEtOPy3y4FzmO97wVuxbCR486?= =?us-ascii?Q?PkbGU7v37zd9YNt53fexpOMdReHIlidMcmm112vH6+tD8KdxhXLqS5pewifR?= =?us-ascii?Q?CIM2S8OMvNB88flf0+7BeyoZ8uGfPog1hCSrUr3YQl/JzUPTzFGxOi1uhrS8?= =?us-ascii?Q?NaXB+To3cDOUfubpdiTQRD90yyoD7Tn/A8wM6ZnFQX4aI2KXADTfHQX0guL8?= =?us-ascii?Q?hw=3D=3D?= X-MS-Exchange-AntiSpam-ExternalHop-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-ExternalHop-MessageData-0: =?us-ascii?Q?5YyooUZxbOs057QnLjn0A0pv2RmbfzEXTtgpiRuxpderf4+yLnkDs2orIQz6?= =?us-ascii?Q?36ufkpG1jacwOfNySFD48sqvxOQtsVRjKnbjw78DjbsX5HfK7sR/teChR24T?= =?us-ascii?Q?GBxr1MoUOX3WbIey+eOcFhzuUABI1nsBadEIY0rtyRkRRu8D6Cb5GQQVS+JN?= =?us-ascii?Q?OMEZ/GS36wr5S1TsFxyBW5pMEOWPzz5TBrgH0xh7+wn4MHwSdFR/Pk8dx4sH?= =?us-ascii?Q?ZpU72QbGz2vKVANHxCFmSvOHorQtmbTgpW1PtJZzaiWGF4Zwm2lXBQR21dLl?= =?us-ascii?Q?TnjRYLmTk6McjQrbArSvT9z/PRntXsBTUICJgM1oRkOWHisOQK+MHXbzcRfn?= =?us-ascii?Q?iToZVKUvygavYCUfGLUdHYxG8+EOnHUju5cN9VCsuP9HP60oCx4ErsObLfP0?= =?us-ascii?Q?M7kXFGYd6lcjwTSTxv8HNsyepF+iCxr6r9aHle6TY7VzMnbXVGcpIhn6MCDZ?= =?us-ascii?Q?SaKzKrckS/jySVG/9lbhYw3tWWwf+XU8U3pukSZJ2OH3mvkye0/NeoNfu7nr?= =?us-ascii?Q?HWY5+TGxdYawW8CbxUVPMytGchQ7yTh57hWkUdLlKLcTMls1ZUk5r/RkW/MH?= =?us-ascii?Q?d314cR8fpSc7JAwIFsLtEg5HP0Xh90UA1OyG2ed8SSVN7oNyQgvsooSOHBVt?= =?us-ascii?Q?QhT0tMDhSCOeHFachDMP9a8fpaNrGgKBa5exJo87lIgyRrzR2fz66uh1L8Db?= =?us-ascii?Q?dbVQ7VWd+vXFDbgpUpqX2nS/Y4cT3nCQ/0eYojcZYw63lNt/nwyQD1wDwoCp?= =?us-ascii?Q?nPX5gFA8+piIezDItADb9jqM42mCz1CYJvWGlCCoQ4NqPE7d2GChSUpOZ6g/?= =?us-ascii?Q?bLPY4ZSIqLnoBE/O5CCAAwj3KFLbaOYdEnYp5A3GF48UIxgMO8cwDeU9/bw0?= =?us-ascii?Q?nRkDZZooNsU3oTgg9vQF77/QFS1OOw07INaX6mBasZFc1c5Gp7quJlVpKJ5s?= X-OriginatorOrg: oracle.com X-MS-Exchange-CrossTenant-Network-Message-Id: b5baba60-f69c-43e3-2883-08db81571d00 X-MS-Exchange-CrossTenant-AuthSource: SN6PR10MB3022.namprd10.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 10 Jul 2023 15:05:35.3404 (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: HXMOza36T3XiOug2zy4CvW/rx4IIMOv7PEorfSc4OYOBo0ELu3QgXcCpDUOozYBLJquHtsvOCdANHfPQY0FsXQ== X-MS-Exchange-Transport-CrossTenantHeadersStamped: MN2PR10MB4127 X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.254,Aquarius:18.0.957,Hydra:6.0.591,FMLib:17.11.176.26 definitions=2023-07-10_11,2023-07-06_02,2023-05-22_02 X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 adultscore=0 mlxscore=0 bulkscore=0 suspectscore=0 spamscore=0 phishscore=0 mlxlogscore=999 malwarescore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2305260000 definitions=main-2307100136 X-Proofpoint-ORIG-GUID: MHBkljdTlfcbVaWwWy5mgZWflba3dF14 X-Proofpoint-GUID: MHBkljdTlfcbVaWwWy5mgZWflba3dF14 X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_BLOCKED, RCVD_IN_MSPIKE_H5,RCVD_IN_MSPIKE_WL,SPF_HELO_NONE,SPF_NONE, T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org * Liam R. Howlett [230707 11:18]: > * Peng Zhang [230707 06:11]: > > Set the node limit of the root node so that the last pivot of all nodes > > is the node limit (if the node is not full). This patch also fixes a bug in mas_rev_awalk(). Effectively, always setting a maximum makes mas_logical_pivot() behave as mas_safe_pivot(). Without this fix, it is possible that very small tasks would fail to find the correct gap. Although this has not been observed with real tasks, it has been reported to happen in m68k nommu running the maple tree tests. Link: https://lore.kernel.org/linux-mm/CAMuHMdV4T53fOw7VPoBgPR7fP6RYqf=CBhD_y_vOg53zZX_DnA@mail.gmail.com/ Cc: Cc: Geert Uytterhoeven > > > > Signed-off-by: Peng Zhang > > This has been on my list of things to do for a while, thanks. > > Reviewed-by: Liam R. Howlett > > > --- > > lib/maple_tree.c | 3 ++- > > 1 file changed, 2 insertions(+), 1 deletion(-) > > > > diff --git a/lib/maple_tree.c b/lib/maple_tree.c > > index d3072858c280..f55e59bd9122 100644 > > --- a/lib/maple_tree.c > > +++ b/lib/maple_tree.c > > @@ -3692,7 +3692,8 @@ static inline int mas_root_expand(struct ma_state *mas, void *entry) > > mas->offset = slot; > > pivots[slot] = mas->last; > > if (mas->last != ULONG_MAX) > > - slot++; > > + pivots[++slot] = ULONG_MAX; > > + > > mas->depth = 1; > > mas_set_height(mas); > > ma_set_meta(node, maple_leaf_64, 0, slot); > > -- > > 2.20.1 > > > >