Received: by 2002:a05:6358:d09b:b0:dc:cd0c:909e with SMTP id jc27csp4314542rwb; Sat, 3 Dec 2022 23:09:17 -0800 (PST) X-Google-Smtp-Source: AA0mqf4gwidKbkRLw0wtNV6+NEbTeLwqs1gypz/8r81TvQTFzy7WOsYNJ5OL25jgnUWgD8yMLzA+ X-Received: by 2002:a17:906:2804:b0:78d:e7c0:a2b with SMTP id r4-20020a170906280400b0078de7c00a2bmr66697056ejc.273.1670137757289; Sat, 03 Dec 2022 23:09:17 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1670137757; cv=none; d=google.com; s=arc-20160816; b=XD6KTQh/S1lBqvyTm8a6pp76myByIXFsF01ja+qYk6P0HAB3596U3gGsdTb8A4Ilmv Bg29Z1eBRmXRPQaqKHg3OwZTmCT51sNh8K4lI2SK5eIu1sY1rzmqg266MVOXH5CWxp8n f7mg67bb/d5ZhP4LI+XEH5u5Y1vGPL/VMvB/eKMDvZqysDmoxRM7KTAF96FIFUVbigs3 ctYUVr9cr+JzCVtMCFHYo4YmUDQnPKA2A3ZPWLCKp/+5yqh8LlsiReSFxpA6x5CdxI09 PYxJ3JAVgCfcE881xZ1Oc0IsjBVIIND6xWPki+v5Xm0piaRug+PHr36Wc6g0E7hjCXGX k4Gw== 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=Er3vyZP2X6fRoptLXpTof1mG8yiaROtq+j9btWt7Srs=; b=hO2aYc7Ua6GAORsmFRBWMXs3SIKnNJ5yBHqG+Ihwd/Be7D+Kx84bmnHrpOUruNFbXE emjuy2AUb49xgt9xtpFgMkhv1i3Fz+ac80z+EXNjgZMqLq5fvuPtfDyGsGjP5VlGzmQV fim73RrYydRAopnmNatT//7bbCW1/uuY2Y2dvdSuX7JhEIiTD68g9O/W79j1jUPmM3WT fLQtPRVyyaZSKELkgkJ60ft7M3cefAyxnhoWHeXFDMarHnwyTnz8S9wrr8qP55VncwjM sx2rDk4ZL37QWf0pUAin52AhQRUJKJZx18n0Sa9yfLkDl58tVLOTgAS+GS3tZw1D080A t5AQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@infradead.org header.s=bombadil.20210309 header.b=Z7ctLOkq; 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 sc28-20020a1709078a1c00b007878144285csi9468245ejc.314.2022.12.03.23.08.53; Sat, 03 Dec 2022 23:09:17 -0800 (PST) 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=Z7ctLOkq; 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 S229800AbiLDG4d (ORCPT + 99 others); Sun, 4 Dec 2022 01:56:33 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:49522 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229599AbiLDG4c (ORCPT ); Sun, 4 Dec 2022 01:56:32 -0500 Received: from bombadil.infradead.org (bombadil.infradead.org [IPv6:2607:7c80:54:3::133]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 4D8E1167E7 for ; Sat, 3 Dec 2022 22:56:30 -0800 (PST) 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=Er3vyZP2X6fRoptLXpTof1mG8yiaROtq+j9btWt7Srs=; b=Z7ctLOkquyILpSi+cQ+2v2IhmP iVOw6wLY/vDqQhUhgQul2JQJExevqyUS21vu1yqlW4GdGOnZoGUSp14auTVpQ0uDWj3QKgb+2662Y GzpC0b/6usMJ3Ue7PdMCj6zfWCMOoOf4EQTBiDV1knHsgQJdjbSL5AexXslRuyPYMvKhv5JjT3HgT Nku+mzICULU8CtP+mu52jf+CSSFyBUomuQStG0O4te2774Y9ZCVVhLrCeJhcd723oW3n3ZOql5a0o 8ppjmtuV1TC63yUmUJDcpW6tIL6U+LWmLRnzYcS2iEqUZKk3+4D/2XeM6cU+OqRc7Kp6Kd2/m9KZa p3ZggDjw==; Received: from hch by bombadil.infradead.org with local (Exim 4.94.2 #2 (Red Hat Linux)) id 1p1ivJ-006qPy-Ky; Sun, 04 Dec 2022 06:56:25 +0000 Date: Sat, 3 Dec 2022 22:56:25 -0800 From: Christoph Hellwig To: Jan Kara Cc: Ted Tso , linux-ext4@vger.kernel.org, Christoph Hellwig , Ritesh Harjani Subject: Re: [PATCH v2 0/11] ext4: Stop using ext4_writepage() for writeout of ordered data Message-ID: References: <20221202163815.22928-1-jack@suse.cz> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20221202163815.22928-1-jack@suse.cz> X-SRS-Rewrite: SMTP reverse-path rewritten from by bombadil.infradead.org. See http://www.infradead.org/rpr.html 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 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-ext4@vger.kernel.org On Fri, Dec 02, 2022 at 07:39:25PM +0100, Jan Kara wrote: > I have also modified ext4_writepages() to use write_cache_pages() instead of > generic_writepages() so now we don't expose .writepage hook at all. We still > keep ext4_writepage() as a callback for write_cache_pages(). Nice! > We should refactor > that path as well and get rid of ext4_writepage() completely but that is for a > separate cleanup. Agreed. > Also note that jbd2 still uses generic_writepages() in its > jbd2_journal_submit_inode_data_buffers() helper because it is still used from > OCFS2. Again, something to be dealt with in a separate patchset. Indeed. I think simply moving jbd2_journal_submit_inode_data_buffers to ocfs2 and then open coding generic_writepages will be the right thing to do here.