Received: by 2002:a05:6358:9144:b0:117:f937:c515 with SMTP id r4csp387966rwr; Thu, 4 May 2023 21:36:29 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ4pUq9l2It8Mh6pamqGIpXDZcxXFBFNA4vJCJKbc0T46cYnHB2EHkgf8pHwn6kSJRSX4wCS X-Received: by 2002:a05:6a00:1ad0:b0:63b:5f78:d6db with SMTP id f16-20020a056a001ad000b0063b5f78d6dbmr765876pfv.21.1683261389301; Thu, 04 May 2023 21:36:29 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1683261389; cv=none; d=google.com; s=arc-20160816; b=HPBLsl4tPmM+SrWrJbLvep7F/UVH7o4a8Ltc04YMxqCPJ9Z4b4E6EofXsXnJwedldO /jMOo2jZNx0cv0nw9Rg5lf5x8hjSdDLkUvzf9n4eJghasLYXVT6laM2yuuMSr26OxeOW D4pMC8G4sN2W1KEi9gM9K5Ltm06ppBVzya9a1kEQqarsZkS90g5YNFhOAMB5mAWoc5MY eGGsgp+erc7f0TfX1NHNhFpzr073KDAun1+8dBUfzrkV/BxVFuDiOIWiaqH0WcWkg2vc I/BwJejye2UDWaHiEzRgKWXibWLQmWvZIpQozp3CXUYuupengt58kv8NxB9TvJD44bYj elMQ== 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=ZJhatz1D3S4pgo3fhtDKJJtaX7Ot4usQSOKKkQ2zfAI=; b=VzM/yYVeouAeX5JtAubFPnUaCqYRMmf9WzO1Y3M5tEMLb5cBGrWGhwv+mSKAp3Qvz+ EwBKnS6xN13r5XX06VOzx1E7tXCrpNF0IqOjBf9+cnQ1bFL+kstb3qCDTObr9sOwl60h mbKhDnfHYQtRqZNegxlOkz/VKMkrh2Lp3cG8DS8cVnvj+J/Hber4vkF41005QTbHa7Pt ZbHjU9Yw8br+mXNH7FUug7E3J9Gm4uw8HKI6jWhY7kelAXfaaTPRl/IpX763bNGaddNb yQY2J1bJtomRwN7kwIyDzz+a9Mo0f+I0mhp52okeywN4S6A4HOAeiDX933dEy2YjhvA3 pSOQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@infradead.org header.s=casper.20170209 header.b=MvlZUJqJ; 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 x24-20020a63db58000000b0052ca3209fc0si1043767pgi.651.2023.05.04.21.36.14; Thu, 04 May 2023 21:36:29 -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=MvlZUJqJ; 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 S230216AbjEEEEp (ORCPT + 99 others); Fri, 5 May 2023 00:04:45 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:33244 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230193AbjEEEEn (ORCPT ); Fri, 5 May 2023 00:04:43 -0400 Received: from casper.infradead.org (casper.infradead.org [IPv6:2001:8b0:10b:1236::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 3E46B1987; Thu, 4 May 2023 21:04:42 -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=ZJhatz1D3S4pgo3fhtDKJJtaX7Ot4usQSOKKkQ2zfAI=; b=MvlZUJqJ5TRwZt7ezPq/PMD2Mt 9Vfk6q9uX9Cngmvo+DahcUF1JOjHHrNb7qCMF1dPU3Dbr3wvaE8EMQ8peEqyGhPbg/TkmKmTNRAS1 0599VYRSMtkm+mDGcj0uiV0/IGBGACQOILEQKq6whVvFxVbC8DWwYZDRXv+vXXBdM5M2q0QqmtiHd JADbi0UPSbg+M5VxyhyKdeQi3PhDDPWBarxHNrYkWJKgRCqiHEb+EVMyGM9rIGcpi7u22Xa4WG9sY s9Deis9dhzKEFPCYsAVQc9RrbWt7zjSrWmTv1EPNZw0Vl56lANTsBJLU+x1ZuGfYj+6yg4TTxOi+I LJvwq7og==; Received: from willy by casper.infradead.org with local (Exim 4.94.2 #2 (Red Hat Linux)) id 1pumgG-00BDMR-Dx; Fri, 05 May 2023 04:04:28 +0000 Date: Fri, 5 May 2023 05:04:28 +0100 From: Matthew Wilcox To: Andreas Hindborg Cc: Jens Axboe , Christoph Hellwig , Keith Busch , Damien Le Moal , Hannes Reinecke , lsf-pc@lists.linux-foundation.org, rust-for-linux@vger.kernel.org, linux-block@vger.kernel.org, Andreas Hindborg , Miguel Ojeda , Alex Gaynor , Wedson Almeida Filho , Boqun Feng , Gary Guo , =?iso-8859-1?Q?Bj=F6rn?= Roy Baron , Benno Lossin , open list , gost.dev@samsung.com Subject: Re: [RFC PATCH 01/11] rust: add radix tree abstraction Message-ID: References: <20230503090708.2524310-1-nmi@metaspace.dk> <20230503090708.2524310-2-nmi@metaspace.dk> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20230503090708.2524310-2-nmi@metaspace.dk> X-Spam-Status: No, score=-4.4 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_MED,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 On Wed, May 03, 2023 at 11:06:58AM +0200, Andreas Hindborg wrote: > From: Andreas Hindborg > > Add abstractions for the C radix_tree. This abstraction allows Rust code to use > the radix_tree as a map from `u64` keys to `ForeignOwnable` values. Please, no. The XArray interface is the preferred one; the radix tree is legacy. Don't make Rust code use the radix tree. It has the GFP arguments in the wrong place, for one thing.