From mboxrd@z Thu Jan 1 00:00:00 1970 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=infradead.org header.i=@infradead.org header.b="CQjNFKbG" Received: from casper.infradead.org (casper.infradead.org [IPv6:2001:8b0:10b:1236::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id D3D8E10E; Thu, 14 Dec 2023 11:01:40 -0800 (PST) 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=BIjDpnSLfy+/JidKOjaXfU4tgr5UOAxujD+5ylQPn00=; b=CQjNFKbGCXrJctffz724MivJGE Lz5D8m7LpMuh6Zt0cgfflMlA01k9xaxqraUuyMlp1rGtMm7ldVTJWQSjhWXsvPqaGT50zUFHYikw1 ifJ5gBmXnpVVAxrYwo3xQ9fkpx4w6OYvwy8QY/p43OKOy+Kb++4u/ioZTy65zPuhfJpmZzmrweW5O 7eyMywno2bhZeUYhIZMTs/CUflon5q552OQm9a+JOcqQms43Oo7tj0YXEwkWFWB8XYoMSkZo2FtM+ rnQF+2L4ZoquufjpE2Vq6BDn6VLJNq0/kiZ5cYZuTNZWQ2BJJaBpNjlrVs0LvSuMvV4GSMDAmUO7f HhMtULnA==; Received: from willy by casper.infradead.org with local (Exim 4.94.2 #2 (Red Hat Linux)) id 1rDqxZ-009SqZ-SO; Thu, 14 Dec 2023 19:01:25 +0000 Date: Thu, 14 Dec 2023 19:01:25 +0000 From: Matthew Wilcox To: Christoph Hellwig Cc: Namjae Jeon , Sungjong Seo , Jan Kara , OGAWA Hirofumi , Mikulas Patocka , Dave Kleikamp , Bob Copeland , linux-fsdevel@vger.kernel.org, linux-ext4@vger.kernel.org, jfs-discussion@lists.sourceforge.net, linux-karma-devel@lists.sourceforge.net, linux-mm@kvack.org Subject: Re: [PATCH 4/9] hfs: remove ->writepage Message-ID: References: <20221113162902.883850-1-hch@lst.de> <20221113162902.883850-5-hch@lst.de> Precedence: bulk X-Mailing-List: linux-ext4@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20221113162902.883850-5-hch@lst.de> On Sun, Nov 13, 2022 at 05:28:57PM +0100, Christoph Hellwig wrote: > ->writepage is a very inefficient method to write back data, and only > used through write_cache_pages or a a fallback when no ->migrate_folio > method is present. > > Set ->migrate_folio to the generic buffer_head based helper, and stop > wiring up ->writepage for hfs_aops. > > Signed-off-by: Christoph Hellwig Was there a reason you only did this for hfs_aops and not for hfs_btree_aops? It feels like anything that just calls block_write_full_page() in the writepage handler should be converted to just calling mpage_writepages() in the writepages handler. I have a few of those conversions done, but obviously they're in filesystems that are basically untestable.