Received: by 2002:a05:6358:7058:b0:131:369:b2a3 with SMTP id 24csp2445902rwp; Fri, 14 Jul 2023 06:24:10 -0700 (PDT) X-Google-Smtp-Source: APBJJlE9KvQEWQqr/IpIZD62TtR21pwfa2z3vmvcoDxsq92w6rne9zrL57ASJjRJsv5Ok3BOWurS X-Received: by 2002:a05:6a20:441a:b0:121:7454:be2a with SMTP id ce26-20020a056a20441a00b001217454be2amr4339422pzb.45.1689341050469; Fri, 14 Jul 2023 06:24:10 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1689341050; cv=none; d=google.com; s=arc-20160816; b=xn5gWIPK4ua2Lf6PYEMRz645okLgZFKtaYgEuAqrtnv8Q9ESMws0dcg4pRn8T9+388 OsDU5I83qP+QRhtL61Xq1a2ArJg4e0mGGi4AuIgkOkdcHQwsaSqvxe97lXcNl1cKM707 /JIKP+8BYWbsRXV7E0cMZQmyFotn1RefnMnampcKzKf5Xy6vFPVg8Xgo8Gr0TqvkcqUZ QOGKuoD8zBagMsLcghofVQu4iZ7FnJuNFDcsEDdMuNj31tD4uLhDtUrhGlDlGdGzuBnP Q/ehL6BAhf4LAKfngMD6tgqX3Mtg6wAQrwELB+mgWC6uhLZMvTLe4FpG3Rk2TwDxpDbN yZVQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=DahJQLuKdz+p5XMB8Vqx/A8LXfXbzJcB/v0Ff8D7d0U=; fh=ubiOzWfZ9gWmr2Jqif3XpviJtdRZzeX3lNzqkgzb+WM=; b=KpS+5jTytjLQOOQO+nnEGC03Wjfn46uftlziy8ieVABSJpwXd44pfOKYSI3mW2liZh H/dPravyzguLtySKOvZVzSj5FkQCGbrpQ1HhXZRcGo7Dy2DpJvvK28UIAb1/o/KWrIj0 iin7qxMHBzJkVfdNJf9Bjm9McnsaFxYNHn1fshmpat0IIsSUX7+pUyI2CvW1u3xY/ToP 4Ct+6oFfGTBmXcenuUjr3LB8nZqFnOU1UtVCP9RNdhnKaJteoviffydKJlaSaWHX2lHl pqn6DlXPZ88GYs1gxrxBoq7Sa6ugvWeVB6dJNl1uPAzsJH4f5HRxppzyzECcAMwqvKT6 motQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@infradead.org header.s=casper.20170209 header.b=q5dHpd3d; 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 Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id m15-20020a170902bb8f00b001b9e1d5eb1dsi7113142pls.279.2023.07.14.06.23.57; Fri, 14 Jul 2023 06:24:10 -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=@infradead.org header.s=casper.20170209 header.b=q5dHpd3d; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S235469AbjGNM5a (ORCPT + 99 others); Fri, 14 Jul 2023 08:57:30 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:54814 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230093AbjGNM53 (ORCPT ); Fri, 14 Jul 2023 08:57:29 -0400 Received: from casper.infradead.org (casper.infradead.org [IPv6:2001:8b0:10b:1236::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 1D527273F for ; Fri, 14 Jul 2023 05:57:29 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=casper.20170209; h=In-Reply-To:Content-Type:MIME-Version: References:Message-ID:Subject:Cc:To:From:Date:Sender:Reply-To: Content-Transfer-Encoding:Content-ID:Content-Description; bh=DahJQLuKdz+p5XMB8Vqx/A8LXfXbzJcB/v0Ff8D7d0U=; b=q5dHpd3dVO9cITILalxj5g1CXR WtMGJ4GZ/U2gnZL/Qd/FVtxy48Cj5U+/rkgPs1adY7RmozMH+PzC8UNR22bjC5zYZgGMWpx9/uGwM ex36iU9g3INbyfW76jxQoaEgWrq+NB0uY6wSq07K7qm8fFi6aruy1iCqVLCMudW01HTSZFUhO4R+X vxm/JoE9L36TaDVkRpqB4Utj0d8+XMVMKp4F0pM/uq5f5cFHAfBrtsnKPedYo/WHqg5ijyI0KLs1G 03XJc6Zj77s3ZcTKW5s4bQVD4EtitsHle2rIMQgLVvdGcRw26gHEW3Me+DiSS1J/uPt4oINX8p6Iz OChQMBZw==; Received: from willy by casper.infradead.org with local (Exim 4.94.2 #2 (Red Hat Linux)) id 1qKIMK-0013sI-9o; Fri, 14 Jul 2023 12:57:20 +0000 Date: Fri, 14 Jul 2023 13:57:20 +0100 From: Matthew Wilcox To: Peng Zhang Cc: "Liam R. Howlett" , maple-tree@lists.infradead.org, linux-kernel@vger.kernel.org Subject: Re: Maple Tree Work Message-ID: References: <20230707163815.ns4kdz7iut5octjv@revolver> <0152143a-b105-a413-ddf2-47f688633d97@bytedance.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <0152143a-b105-a413-ddf2-47f688633d97@bytedance.com> 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, SPF_HELO_NONE,SPF_NONE,T_SCC_BODY_TEXT_LINE,URIBL_BLOCKED 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 On Thu, Jul 13, 2023 at 05:58:13PM +0800, Peng Zhang wrote: > I have a question I want to discuss here. I noticed that the interface > of maple tree has three different prefixes, namely mtree_*, mt_*, mas_*. > I am curious why the interfaces prefixed with mtree_* and mt_* cannot be > unified? I think they can be changed to mtree_* to avoid two different > prefixes. I haven't worried about this too much. The long-term goal is to use the maple tree data structure to replace the radix tree data structure underlying the xarray and use the xarray API to access the maple tree. The xarray API will need some enhancements to make this work, but churning the maple tree API doesn't seem like a good use of effort.