From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id DBBAFC4321E for ; Sun, 4 Dec 2022 06:56:34 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229801AbiLDG4d (ORCPT ); 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 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.