Received: by 2002:a05:6358:9144:b0:117:f937:c515 with SMTP id r4csp460979rwr; Thu, 4 May 2023 23:09:28 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ4zy5Q12tGTAT5jE1tsxJ8uSvzfDDPGXgFmIRixO3zsonmlJg8a+tnWATVv673igNbn5U8U X-Received: by 2002:a17:90b:190f:b0:24e:16ae:61ca with SMTP id mp15-20020a17090b190f00b0024e16ae61camr372114pjb.34.1683266967845; Thu, 04 May 2023 23:09:27 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1683266967; cv=none; d=google.com; s=arc-20160816; b=fEoGmI7QP7gxZBCFdvFHZ5H71QkbqwBZ3qe30PCF2t16n9gVWdD8dpSedfcCcr1Ael i4f/ivw8FZLELLSxiULSCL0FyplD4Zh7vFpdU6xuJvldEvogq95b1Cu85xNwZbC+uaER sbdslHCXj3j3dK/UmGXmtiEpg5+3YKBvO0jBr/+oYqnzOsiGQeMEZGYViSFTK+WfeEaJ aKg991aaCg24udiJRbhRAuXTxJH04IbDuvVnfLEyi9CzrQG6wskRkuBNGo757DnMUF2H B3oBf/ogDrA8hOvO0+KgHMPn48m9DwEg+YzZSKFrDmHD/mIz0+l/NGm0bjCIhbnTSVw+ rKRA== 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=LQA4GbnUf0oYoIkNnpkgzYq4G7BremfMrzKcIO5uhSU=; b=QmdAapPr4aHlfpGgWywnePy6LdlkavIPkdovmu1Q6chvu/kbmq9cxaet1I7ixEdjIr kQNH2CjxN237jXGx3bGHgR4I1z5Dr6EB7i0CofSwB2KCLneOVnOwNTQCEQn7uUwwqxwk INdZN9+OO0iQkwV7tOyG1hDs2WypvKwLql4IFSJjmlAlWwfG5lDO15wb2kq5dLINP/42 DwHJEl8+clBHI272a+1Mw6VvdZbJONgJNkCf5v40j29AxkUMV3YCERtBYG8noT5X/wZG RyZxel5uN1OyT9NALvGn1V28GLDA4Encn4WQ7ls3+fSmgVe2m/IIErrnP+wbkTOrj4jA MKVA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@infradead.org header.s=casper.20170209 header.b=WTkLoGwY; 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 q7-20020a170902dac700b001a645e63b73si981727plx.566.2023.05.04.23.09.12; Thu, 04 May 2023 23:09:27 -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=WTkLoGwY; 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 S230292AbjEEF32 (ORCPT + 99 others); Fri, 5 May 2023 01:29:28 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:58504 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229601AbjEEF30 (ORCPT ); Fri, 5 May 2023 01:29:26 -0400 Received: from casper.infradead.org (casper.infradead.org [IPv6:2001:8b0:10b:1236::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id C1B3CA5C8; Thu, 4 May 2023 22:29:25 -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=LQA4GbnUf0oYoIkNnpkgzYq4G7BremfMrzKcIO5uhSU=; b=WTkLoGwYgeTEav6wxaGuDNJQE+ eFWyclwUrUJtrmHDy3DKLjTSKlh2OJWFXvwrDa1/e5Ex8y+NVlnGpktMz5H9E6cPSrAa85ADuPtHs Lqxenv+UZG3U2crlGQ2gSmV4VACixDb0luXKoQXG4JT+KopxH4WZ5WlO772CWplY28bBKM9TU/i4j F3oiu8ddOtvd48FJfWd4JeMSo/dhTpjCSGTIWJviNbFleqvHBLqKdJrIM650Ag/Nm3GYARpr7Ytu4 X/DmBMNHko1g7Aq5CLalf3IapC42jOdmNlonr1eh8p1VTpo6DKRA00M7NcEHcN0ph+KyewE2HuflE 96cFoorQ==; Received: from willy by casper.infradead.org with local (Exim 4.94.2 #2 (Red Hat Linux)) id 1puo0N-00BFr5-9p; Fri, 05 May 2023 05:29:19 +0000 Date: Fri, 5 May 2023 06:29:19 +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, 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 02/11] rust: add `pages` module for handling page allocation Message-ID: References: <20230503090708.2524310-1-nmi@metaspace.dk> <20230503090708.2524310-3-nmi@metaspace.dk> <871qjvtmb5.fsf@metaspace.dk> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <871qjvtmb5.fsf@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 Fri, May 05, 2023 at 06:42:02AM +0200, Andreas Hindborg wrote: > > Matthew Wilcox writes: > > > On Wed, May 03, 2023 at 11:06:59AM +0200, Andreas Hindborg wrote: > >> From: Andreas Hindborg > >> > >> This patch adds support for working with pages of order 0. Support for pages > >> with higher order is deferred. Page allocation flags are fixed in this patch. > >> Future work might allow the user to specify allocation flags. > >> > >> This patch is a heavily modified version of code available in the rust tree [1], > >> primarily adding support for multiple page mapping strategies. > > > > This also seems misaligned with the direction of Linux development. > > Folios are the future, pages are legacy. Please, ask about what's > > going on before wasting time on the past. > > I see, thanks for the heads up! In this case I wanted to do an > apples-apples comparison to the C null_blk driver. Since that is using > kmap I wanted to have that. But let's bind to the folio_* APIs in the > future, that would make sense. Well, kmap() is essentially a no-op on 64-bit systems, so it's not terribly relevant to doing a comparison.