Received: by 2002:a05:6358:11c7:b0:104:8066:f915 with SMTP id i7csp7021130rwl; Wed, 22 Mar 2023 20:30:46 -0700 (PDT) X-Google-Smtp-Source: AK7set9HY3u2pquEi23t2Vh7THbwtgvdtfaE3eFmMGL8fv7eV76yBGPGsF9PKHjEghJH8/g3/LgK X-Received: by 2002:a17:902:da86:b0:19e:2eb5:712d with SMTP id j6-20020a170902da8600b0019e2eb5712dmr5990811plx.25.1679542246121; Wed, 22 Mar 2023 20:30:46 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1679542246; cv=none; d=google.com; s=arc-20160816; b=jPOycZ9OGGw7bSq80yr4ZLhgycU4lwmfgYiJnyo+VkaEv3WYcRdlPcpJza50lsrSeU 9lS4u3C9XSbXHIPikHj8iGrx/3GUY1WafnVjyuszL8VX/aPF6G1op+XicZdC3isb3cw0 DOsd6duIE82oGW7mIQlhpjiTRXbazS1yPLz7y6CfZYjWDNuGlT0D+8hVSXU3N5gS1Pvu Cwl2k40Tx+18RA3Ba0igctZBkBYxXVoU40UgrWeKx9nm11GJEigyJtdri6E/JYAI7EVR 3x16Ib+6zlr2q/AoU4BKpPCBGIbnGHYX3na4fEFSPhMn4o4cFOmCPZIyimWWCKSclhCH Rqxw== 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=PUObvHze7ahZs4YqVo863XKMZRFBTex2ma8xL3E1SBg=; b=POd+dp+2st9m9JJPLzbx+63Zla9bSvke7iW6NWiPmxjN9GQN1hoAw36KZ24Uh45z2a JAvfUzMVlVvXBBsLX2Kq6hbZwmlZ+JBXcvbQUFTeMq2miJT+i1LEP60/cBrBlwkWwatd nwcNUU7Q/dRpjjbbRRbwhKy5IWyzoEyE2rcXHnVD2BvASgHbVsq4RBXJcyz/SsduWPNR S0LXnkTY8onT0otzMeZtZ31v6v/7EbJsKEe3ur8AMCU0Rct5cDkvqtp+Jftk4K4CUnV6 fgJUCEuPYEcHaAsiwpaYrieym66ZNQZ13g69K5VMI64wJIujKsznM6/KWwMiLPwgE+Ej 4GOQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@infradead.org header.s=casper.20170209 header.b=UQdaznGs; 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 t24-20020a1709028c9800b001a04933c6c3si16621197plo.50.2023.03.22.20.30.33; Wed, 22 Mar 2023 20:30:46 -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=UQdaznGs; 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 S229928AbjCWD0x (ORCPT + 99 others); Wed, 22 Mar 2023 23:26:53 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:40124 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229819AbjCWD0v (ORCPT ); Wed, 22 Mar 2023 23:26:51 -0400 Received: from casper.infradead.org (casper.infradead.org [IPv6:2001:8b0:10b:1236::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 15F9B2595D; Wed, 22 Mar 2023 20:26:49 -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=PUObvHze7ahZs4YqVo863XKMZRFBTex2ma8xL3E1SBg=; b=UQdaznGs+lhoyIxI57a5NKI1FA 8vGXVzusnjeKgdlRswl0gug/YXUxtHVB8dQQ2FgGic9Mh36NEHdYGouSeQy4XX2O98BwuPJHevXeJ hESZKTO6v+wPdAaKHwAJO/XqS1jDbH+OQZTZ2Bsw/SGT7oSdmEf6J6tkYMCEbjeyOenvnj+aPwSz0 CuI2aM7rd4Y1f/88A5apulVmjX/CKvjErMkcvXbqKV9PtRB2hw58FSKdnD3oIbAxsbNijtcgqXglO WXrldsfouoiIBNLdbGa4aRmP5vwIikNQzvADP/ZLTJMF7d4JoxBxlLL81T5cB3YKWsTmlMqe2ieCN y/e1GpEg==; Received: from willy by casper.infradead.org with local (Exim 4.94.2 #2 (Red Hat Linux)) id 1pfBb9-003dTO-Ke; Thu, 23 Mar 2023 03:26:43 +0000 Date: Thu, 23 Mar 2023 03:26:43 +0000 From: Matthew Wilcox To: Ritesh Harjani Cc: 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> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <87ttyy1bz4.fsf@doe.com> 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 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. > > Also set the actual error in the mapping, not just -EIO. > > Right. I looked at the history and I think it always just had EIO. > I think setting the actual err in mapping_set_error() is the right thing > to do here. > > > > > Signed-off-by: Matthew Wilcox (Oracle) > > w.r.t this patch series. I reviewed the mechanical changes & error paths > which converts ext4 ext4_finish_bio() to use folio. > > The changes looks good to me from that perspective. Feel free to add - > Reviewed-by: Ritesh Harjani (IBM) Thanks!