Received: by 2002:a05:6358:11c7:b0:104:8066:f915 with SMTP id i7csp2193991rwl; Sun, 26 Mar 2023 18:04:00 -0700 (PDT) X-Google-Smtp-Source: AKy350bZMC5Sr4w5g0OFNGTZqTyZFkDXwGCTe5i43H6kUY8i47cZwCPg79B9znPUjKSPtpQAkBZk X-Received: by 2002:a05:6402:1a:b0:4fc:9329:bd0c with SMTP id d26-20020a056402001a00b004fc9329bd0cmr9472782edu.12.1679879040061; Sun, 26 Mar 2023 18:04:00 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1679879040; cv=none; d=google.com; s=arc-20160816; b=KABDLIEUFg8lpAOXHDfuTRkfdmvI1F+vF4NVBbkUUnUn7JukInQsv836wPKeb3x4Ak f9CbPek8GYGGct2huSe3Srz/EsPlZIJAXB6PiU653Rvpf/G6A2fsBGz0VsyFCTHEr2Oi G1XmvzK3fCdhIKyJdRnSxU3u5ixf2vNt+liOxk6pn1FGUMt+Iru7AjBz8jXADn+BEs4S KLdeBftOyQiC5aIjROxaKApv/4nc8QpBrHDcyy4j7ANvwN7Imwap1YnXNV6f4huv9s47 D72wo4UjjBWMS/X6qrmuVzv0pAmMNmFJJxyn4czMi3wjS9/OUU1Q7goVaUkVSrmLAtxe MOIA== 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=9bdwyjERYCVoCsmHy8KLbCA56UNcg4WM5NtiDroCJUQ=; b=KqHnxi1A9X4hRu6qDNUSLk+B30HCELD6whIHlHM8Kl509oSl6/nND0UvK7LnHRbHPT gTPpgqpVvTgGE8rZRqzoa3d8AFxULmvgR9q1PZCxiuJYg07DJDbwUoNG6ykGTzIKtwm6 V1uiEscmVIR+tBrLk5fwg3urzvMurGQ4TfYSorVUXrZzkUwfNwzMp81kfiMoSP3cqqCV YLXVgbkUWxqRNV26Te7LRtQOrds8pSIMh54TWjJRlkNHoU3PqLyGC30p+1z2q94rGZ6m IPuPh0TxhnCkxBzdIOcOSdq+5Re3rMgx9hXec1t+0bu5h4WpcpGgww+GVtRZqDWQXBVM Nm2w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@infradead.org header.s=bombadil.20210309 header.b=KosSnomX; spf=pass (google.com: domain of linux-ext4-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-ext4-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 un2-20020a170907cb8200b0093defbd628fsi7390661ejc.1046.2023.03.26.18.03.31; Sun, 26 Mar 2023 18:04:00 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-ext4-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=bombadil.20210309 header.b=KosSnomX; spf=pass (google.com: domain of linux-ext4-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-ext4-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229880AbjC0A6f (ORCPT + 99 others); Sun, 26 Mar 2023 20:58:35 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:36400 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229653AbjC0A6e (ORCPT ); Sun, 26 Mar 2023 20:58:34 -0400 Received: from bombadil.infradead.org (bombadil.infradead.org [IPv6:2607:7c80:54:3::133]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id C279640C7; Sun, 26 Mar 2023 17:58:33 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=bombadil.20210309; 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=9bdwyjERYCVoCsmHy8KLbCA56UNcg4WM5NtiDroCJUQ=; b=KosSnomXy/3gbPmJxvHVpJqNQQ qCtDofqgx5GpzXVZgB1AT+uX9Vj/kQYDa5GXW6/2xlF9zbMzNlLYLhy/MzdG9ffRYzLlYMd27MQoI W95t9eQM9JCuUhF6HSF2AyFp5vgsCn3WOLU3NVl6lj8heE+e9PGwiwZJcvjrWt0aBxLopJRQQ6ghO rhTKESjbP088Or9u2VkmOAmEzLBW0es4vnTpk0o7lbCvFWaZ38n2Uomc1sNMRlHtQtXxNWrtMnLAW FQhNPu28WNnuSlNBEmrnDbNxk+u/4cmJ3mlR52yGaqP668e3YEzI2TrClp3bFVCuOhdd0cLw1V0T5 o6Y+48Gw==; Received: from hch by bombadil.infradead.org with local (Exim 4.96 #2 (Red Hat Linux)) id 1pgbBv-009RMh-0L; Mon, 27 Mar 2023 00:58:31 +0000 Date: Sun, 26 Mar 2023 17:58:31 -0700 From: Christoph Hellwig To: Matthew Wilcox Cc: "Darrick J. Wong" , Ritesh Harjani , Theodore Tso , Andreas Dilger , linux-ext4@vger.kernel.org, linux-fsdevel@vger.kernel.org Subject: Re: [PATCH 04/31] ext4: Convert ext4_finish_bio() to use folios Message-ID: References: <20230126202415.1682629-5-willy@infradead.org> <87ttyy1bz4.fsf@doe.com> <20230323145109.GA466457@frogsfrogsfrogs> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: X-SRS-Rewrite: SMTP reverse-path rewritten from by bombadil.infradead.org. See http://www.infradead.org/rpr.html X-Spam-Status: No, score=-2.5 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_MED,SPF_HELO_NONE,SPF_NONE 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-ext4@vger.kernel.org On Thu, Mar 23, 2023 at 03:30:38PM +0000, Matthew Wilcox wrote: > I really want to see a cheaper abstraction for accessing the block device > than BHs. Or xfs_buf for that matter. You literally can just use the bdev page cache using the normal page cache helpers. It's not quite what most of these file systems expect, though, especially for the block size < PAGE_SIZE case.