Received: by 2002:a05:7412:8d10:b0:f3:1519:9f41 with SMTP id bj16csp6204199rdb; Thu, 14 Dec 2023 11:01:51 -0800 (PST) X-Google-Smtp-Source: AGHT+IGwOoJg3qlumiPcXA+kjm59wyJIbQoNpjr6pRFkQhV+4JicBGNbLvhlLuAkM7C7ZBu2FIaK X-Received: by 2002:a17:902:900b:b0:1d0:6ffd:cecf with SMTP id a11-20020a170902900b00b001d06ffdcecfmr5370392plp.136.1702580511023; Thu, 14 Dec 2023 11:01:51 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1702580511; cv=none; d=google.com; s=arc-20160816; b=IYMDyEU0K2NU7VW3g0kU2kHklTF3Unrr7DdOX9/GYlB4ArbLWjP2Vg5flhlDiJMiX9 M11uRKwJBlaEYCDl7tG81z+BX1KXlUAFON7bCiG4wqpLz88STIL0/msBcUVpiYcjY5d3 4t9OLs3MkdfTOgC8FRbs6YFNi74BbkcKZTP0/oZhghjq2OWfJwiyOiaziIdsaErg+xhP GGKI8/fyvOEoqNcvqPG4A3pEcoOG+14THAf10xV/xPIUxnRoZUcPUN/gZ0Pu3cR883Wc Q1amVrbTam5GpR9N/AUkH0S++J6hxQEW7GIPkadlQgk2YUD4C7n+bEcewsWQ97Nx+oTr gzLA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=in-reply-to:content-disposition:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:message-id:subject:cc :to:from:date:dkim-signature; bh=BIjDpnSLfy+/JidKOjaXfU4tgr5UOAxujD+5ylQPn00=; fh=7au7RRl2aUBfyAxUVQegt13bLhP4R/48wWUvbdgdnUI=; b=H6dzdV6tCYoU3dbbR/Dkhv8ZZVQBoz6y3XomHWdB66SuhvcIE49LDc31o8JUAWCKuy hPc3AdJ5IMP63VGc41HmxpiTmyVd2esWfQ/59euzSnxGcdZmtlgpnWI3o5GJUGNwHIiA yjgEukc47DHEuWIsGeZk/P1vjGn79XTLX6wtk13AjKJjmHPVJ1KjtijAg+Wkx/U7mC8Z 0QKVgSEkaTgiS3f+9hEGHHJVEj61QN8qhNH5YSWgp7je+h2G5fveFpcuHbg09nyFDWBu yDg9VFqXs83DfB4WIRmASEEBB+IUL/9IzYRRY00oxpfA2appzJw3+YBFsclv6F1OUvp3 GTlA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@infradead.org header.s=casper.20170209 header.b=CQjNFKbG; spf=pass (google.com: domain of linux-ext4+bounces-451-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-ext4+bounces-451-linux.lists.archive=gmail.com@vger.kernel.org" Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [139.178.88.99]) by mx.google.com with ESMTPS id 19-20020a170902c21300b001cfc0272b48si11466357pll.103.2023.12.14.11.01.50 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 14 Dec 2023 11:01:51 -0800 (PST) Received-SPF: pass (google.com: domain of linux-ext4+bounces-451-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) client-ip=139.178.88.99; Authentication-Results: mx.google.com; dkim=pass header.i=@infradead.org header.s=casper.20170209 header.b=CQjNFKbG; spf=pass (google.com: domain of linux-ext4+bounces-451-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-ext4+bounces-451-linux.lists.archive=gmail.com@vger.kernel.org" Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sv.mirrors.kernel.org (Postfix) with ESMTPS id 4BA72282FD7 for ; Thu, 14 Dec 2023 19:01:50 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 9D0C868E84; Thu, 14 Dec 2023 19:01:44 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=infradead.org header.i=@infradead.org header.b="CQjNFKbG" X-Original-To: linux-ext4@vger.kernel.org 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.