Received: by 2002:a05:6358:9144:b0:117:f937:c515 with SMTP id r4csp401876rwr; Thu, 4 May 2023 21:57:16 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ4ZmQl/WKirbtdj/3mAggJEiMv5FJm3kuhK6adEVLPY68MJOVrpsQ1NHG/dnzTS/smJ+EZX X-Received: by 2002:a05:6a00:15c6:b0:635:d9e1:8e1e with SMTP id o6-20020a056a0015c600b00635d9e18e1emr5847850pfu.11.1683262635964; Thu, 04 May 2023 21:57:15 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1683262635; cv=none; d=google.com; s=arc-20160816; b=w6xlVoBnDny031TZsvLK/u6VEoFbVSYvz5YgH/SqVqHUAMZy9KnkRuybJOVw0cUrgR m6TZoGvfSOvwtmWOd5hRWjuWRBJbs2+HetFJUquNAU0lbzonH5fqcXZsO3rkoV1+A4wp j2/mdsiw1kj3rm8d8auM7R0Q3WRZpJmCBE6xZcGZQbVK2IjTfvZRfWRc16e1j4/n+Y8f 7b8cLslXQD//+cJ+IAHrhK+o5TYz9CZstpfgrjAwnYswZ10iFJOs/BgSED9485+v25wh DyjmgX05EYNmGRkUN3bn12/W+fX6apqlOWa2TtcF1HcNmbk6n4WUmSTKh3xEphzBEs84 TXyw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:message-id:in-reply-to:date:subject :cc:to:from:user-agent:references:dkim-signature; bh=N2zbrHcUouESPVHay4P1zwvcufLarr7zD3QUsuo1w5w=; b=sEUBK/kewJZR0/Y0gqQ7h8WGt/IShhUMZwL3cP1uaxn0/NsJSeazzBrOpdUZW7ALJu gP3Baxb5fsGc8de5AQ3/RVft3iiVlsgKq0Czr6+M/DRUr0ldFMOLVwGUFnVqNFL5Gc0o G9PL+4ie8tkyjjaPfX+e84P6/jbVTP4spbcp9I1QiaiU8XNct2m461Ir9viVFJaQCNoR SbsKAzH6kVQD5ShQvffz0IKpNuWmoszPq/kI8k8ECvyBIvXhhqEaPgQne0vw8PP5JbWR JS+DiHdOTrOigxFDJYE+fk3tuRhIkx4DgHz4fwNdJXBKCW8a25Pu4xULNiM64Fx+x8eb vi4A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@metaspace-dk.20221208.gappssmtp.com header.s=20221208 header.b=wbp07luU; 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 g7-20020aa79dc7000000b005a8b856ad47si1220434pfq.7.2023.05.04.21.57.00; Thu, 04 May 2023 21:57:15 -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=@metaspace-dk.20221208.gappssmtp.com header.s=20221208 header.b=wbp07luU; 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 S229620AbjEEEtY (ORCPT + 99 others); Fri, 5 May 2023 00:49:24 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:43644 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230011AbjEEEtW (ORCPT ); Fri, 5 May 2023 00:49:22 -0400 Received: from mail-ed1-x532.google.com (mail-ed1-x532.google.com [IPv6:2a00:1450:4864:20::532]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 45049124B7 for ; Thu, 4 May 2023 21:49:20 -0700 (PDT) Received: by mail-ed1-x532.google.com with SMTP id 4fb4d7f45d1cf-50bc3a2d333so1970907a12.0 for ; Thu, 04 May 2023 21:49:20 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=metaspace-dk.20221208.gappssmtp.com; s=20221208; t=1683262159; x=1685854159; h=mime-version:message-id:in-reply-to:date:subject:cc:to:from :user-agent:references:from:to:cc:subject:date:message-id:reply-to; bh=N2zbrHcUouESPVHay4P1zwvcufLarr7zD3QUsuo1w5w=; b=wbp07luU05fSmqRdPobU4v9TaDXxVfm1rWwZNPQ69qtS+IYU+QsZfB0/iDd0RCiiu8 8GVUTu7fizsoncqab9+xKjms+K7WqCKsDWxrfK8x/jFHoRtDpYqj5BE0kqryuFc8hdd6 ZR/y9KcDxPJaYWrAHUCBz4bUHEZLTn73LgkQp5/7GpEeoji2LCJg+z1R/Qo/0EYkZf8N 8X37WJEvm7XMujz9AwalhAAshGPlvfqDNjOSqkYFCIvh3OFlIPCmpHP4Rp7qLzk70Bu+ B1yh0oBBAu2JNUvssZMgMVsg8TsuCRXVf6WonHmgwipgWt+nFHKlIoZCRw5S0uvWd63S en/g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1683262159; x=1685854159; h=mime-version:message-id:in-reply-to:date:subject:cc:to:from :user-agent:references:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to; bh=N2zbrHcUouESPVHay4P1zwvcufLarr7zD3QUsuo1w5w=; b=TOFQDgcEIkblCtexgvbvEacQ0FFbriJNvv0GHiJcDnsA87+qVmxDvPGEjkfnzD5WAW a9azMJROS8mwFBliuuc9YQBlL5nCbyn/SEERiniJch9XxXAHZP/66g9uJ3T2HVmCu6Zx LlxKu/xanHjBvC0XgR4RX9so6ZdPz7ZlFo9r+IiLFmzXsVBT8muz8j3e1YYYQ4wpPRqu KKq+aahu/vHuS+3VSibtPnHnsDZo/ZDwWWGd+5GRs6C3AjGa3BgE6lLF//fGuA53osOx zZMAWlSlBnpuqIeKx24e7g522/M2by7GF4A1y5AX2b0EgLeSXyR+V6XMptbPPxeAUN2i cwEw== X-Gm-Message-State: AC+VfDx2hQEY97KDG5Hy6tvrY5xIwGIjdvWYbkvuaDgTgSsq7k+21LE6 RsdpS4cJkgnt28iIN3vzPXuuNw== X-Received: by 2002:a05:6402:414:b0:50b:c0ce:d55 with SMTP id q20-20020a056402041400b0050bc0ce0d55mr275206edv.3.1683262158712; Thu, 04 May 2023 21:49:18 -0700 (PDT) Received: from localhost ([79.142.230.34]) by smtp.gmail.com with ESMTPSA id h13-20020a50ed8d000000b0050504648fc4sm2545633edr.80.2023.05.04.21.49.17 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 04 May 2023 21:49:18 -0700 (PDT) References: <20230503090708.2524310-1-nmi@metaspace.dk> <20230503090708.2524310-3-nmi@metaspace.dk> User-agent: mu4e 1.10.3; emacs 28.2.50 From: Andreas Hindborg To: Matthew Wilcox 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 , =?utf-8?Q?Bj=C3=B6rn?= Roy Baron , Benno Lossin , open list , gost.dev@samsung.com Subject: Re: [RFC PATCH 02/11] rust: add `pages` module for handling page allocation Date: Fri, 05 May 2023 06:42:02 +0200 In-reply-to: Message-ID: <871qjvtmb5.fsf@metaspace.dk> MIME-Version: 1.0 Content-Type: text/plain X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_NONE, T_SCC_BODY_TEXT_LINE autolearn=unavailable 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 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. Best regards Andreas