Received: by 2002:a05:6358:11c7:b0:104:8066:f915 with SMTP id i7csp7799918rwl; Thu, 23 Mar 2023 08:49:49 -0700 (PDT) X-Google-Smtp-Source: AK7set+i1yW47pbGfKi73TraXZhYu+ajIfcG/2ko+dzTounoXts7ZEH1yYQ7TgdPs+PgLMaqsbQK X-Received: by 2002:a17:90a:e7c6:b0:23d:2e22:17c9 with SMTP id kb6-20020a17090ae7c600b0023d2e2217c9mr8738446pjb.5.1679586588979; Thu, 23 Mar 2023 08:49:48 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1679586588; cv=none; d=google.com; s=arc-20160816; b=h+SnuB8c0jdFJY7ArfdFykO2dRPy0TAQtVPj610Rf4n4MVJX527GvOn6YWJ9O+gh6N ufJSpYwb6+TiJ9e60JYfqr0lU0gS/tV3+alp4cexs/3qDdLFjzGIuK3E0GtK/TATqhyh f54tKHR65WPwwlcvj7Xne1ARD4jLwN9FuCjkIlDDyAtWSbMpNBJ5A8O1oR7vco0rFq4f D7kvat4JBLXrLhIac5yIcLd8PB0L42M4YUec1me/PKV7PZj/RsmcDgHNfH4Rl8/HYKil uJOJssHBupuGNBO2BdBWBIBLqr3ETRl7+4WonWXlEpiEOEtbiQbrQLX5JFC2S0eU0unS lGCg== 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=eeOG5CigAADDhpiWzbHe93M8aJDDgCUGp/z1aQBsav4=; b=Lgj2HfQm4m33dkLBqqOuee/x2xL7Z5JM5djVfoKD4vGp3PWkXWduOeEcpvk+SpFBaY vAkyfAGk0FoU2i+FY88n9SOS/CZlk2YCHIVHr9G7v6p4qWDmesTGdmG3DGQmPOzcKUG8 dLgpq7LN3/eoPkoMtnlapxTBZIMa4s9mXOgHVkdcCh1cJfkXuhFbp58VYWPQCSGRp7AM X9JFBAhSzz2+mgxYyBkRzVCO+M9YAbI9rfLjjgPtnJAX/dqGtrS93IgFBP6t+r6dCD0f uGnUYVlyNtvoyqWU0YQC4QamNEA4Y9/KSJj9Vq01srV3BcqtcyIO02su5y1EtnOFEy07 pNog== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@infradead.org header.s=casper.20170209 header.b=XP940pVA; 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 gl18-20020a17090b121200b002340b11f1e8si2075263pjb.44.2023.03.23.08.49.26; Thu, 23 Mar 2023 08:49:48 -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=casper.20170209 header.b=XP940pVA; 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 S230377AbjCWPaw (ORCPT + 99 others); Thu, 23 Mar 2023 11:30:52 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:55830 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232177AbjCWPau (ORCPT ); Thu, 23 Mar 2023 11:30:50 -0400 Received: from casper.infradead.org (casper.infradead.org [IPv6:2001:8b0:10b:1236::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 3440B34C2E; Thu, 23 Mar 2023 08:30:46 -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=eeOG5CigAADDhpiWzbHe93M8aJDDgCUGp/z1aQBsav4=; b=XP940pVAUyP7Thq6nocMQueT0P vDcKjK5NtAZ3V18MnVXY3gmuO1GUEaN+iWy1ZK0K3SHEw8qar7B9cx6PxP0FOUu8Oox/JCnAvIDUB 393SoMsSZ+bXIrK2X9VE00xgrhDJSCBdjM7uVR81onvctRZqeoG3hAwvFTzWC+9/pI4bztXd4H1lT PUtO2p08y5GpBNutKUHXZ2jPLNGjAdegsS5ttXEYy70LHMaFc6FIt4hoyrh6bd57GM5WJpiWqwkyK OjYNRw7VOVfrMQDQaAJrlTFxUAPPj/TTep2x40iMrCOCgnEp0OPjyJOxNJZGa7jeyNJrHx+pwjYQW sq6mVCZA==; Received: from willy by casper.infradead.org with local (Exim 4.94.2 #2 (Red Hat Linux)) id 1pfMti-0042lO-Ra; Thu, 23 Mar 2023 15:30:38 +0000 Date: Thu, 23 Mar 2023 15:30:38 +0000 From: Matthew Wilcox To: "Darrick J. Wong" Cc: 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: <20230323145109.GA466457@frogsfrogsfrogs> 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 07:51:09AM -0700, Darrick J. Wong wrote: > On Thu, Mar 23, 2023 at 03:26:43AM +0000, Matthew Wilcox wrote: > > On Mon, Mar 06, 2023 at 02:40:55PM +0530, Ritesh Harjani wrote: > > > "Matthew Wilcox (Oracle)" writes: > > > > > > > Prepare ext4 to support large folios in the page writeback path. > > > > > > Sure. I am guessing for ext4 to completely support large folio > > > requires more work like fscrypt bounce page handling doesn't > > > yet support folios right? > > > > > > Could you please give a little background on what all would be required > > > to add large folio support in ext4 buffered I/O path? > > > (I mean ofcourse other than saying move ext4 to iomap ;)) > > > > > > What I was interested in was, what other components in particular for > > > e.g. fscrypt, fsverity, ext4's xyz component needs large folio support? > > > > > > And how should one go about in adding this support? So can we move > > > ext4's read path to have large folio support to get started? > > > Have you already identified what all is missing from this path to > > > convert it? > > > > Honestly, I don't know what else needs to be done beyond this patch > > series. I can point at some stuff and say "This doesn't work", but in > > general, you have to just enable it and see what breaks. A lot of the > > buffer_head code is not large-folio safe right now, so that's somewhere > > to go and look. Or maybe we "just" convert to iomap, and never bother > > fixing the bufferhead code for large folios. > > Yes. Let's leave bufferheads in the legacy doo-doo-dooooo basement > instead of wasting more time on them. Ideally we'd someday run all the > filesystems through: > > bufferheads -> iomap with bufferheads -> iomap with folios -> iomap with > large folios -> retire to somewhere cheaper than Hawaii Places cheaper than Hawaii probably aren't as pretty as Hawaii though :-( XFS is fine because it uses xfs_buf, but if we don't add support for large folios to bufferheads, we can't support LBA size > PAGE_SIZE even to read the superblock. Maybe that's fine ... only filesystems which don't use sb_bread() get to support LBA size > PAGE_SIZE. I really want to see a cheaper abstraction for accessing the block device than BHs. Or xfs_buf for that matter.