Received: by 2002:a05:6358:d09b:b0:dc:cd0c:909e with SMTP id jc27csp4566285rwb; Sun, 13 Nov 2022 08:30:54 -0800 (PST) X-Google-Smtp-Source: AA0mqf5v3tCjh7CM00EwPLyWwg3XNH1e92UOX+fY9h8oNle64W8CKKnSv2CCXx+Eqktx8LNx+6uq X-Received: by 2002:a05:6402:1441:b0:467:6dbf:e3e8 with SMTP id d1-20020a056402144100b004676dbfe3e8mr7437544edx.291.1668357054330; Sun, 13 Nov 2022 08:30:54 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1668357054; cv=none; d=google.com; s=arc-20160816; b=a9rPCzOvg1kW75RqdoydgkJ61t3cY16c+0NMXuI3z1gkekHCXwKuA5SS6Wrw6D8npk wjqodzQ1EVmjk9Ybj7kzBXRq7m1DTIWmlmLCB2NJefUBF530AMtWDpWIexnJ30i2CfFP GtRy0UzEYBIZtKDpE1/nmUS7YhldG8Cm1EPSIQJ+GJXL1chsCMjpzPgdSfMLs5YcMkNj BJ7UuTXOkwBTLo84VLq1/YfLu1FwyieNUKMUWu5AlVP7Az1gRQQANIvOD7g43TdFSZH1 itAKcntB8eUMUJv/7/98g/oWRUY9+gBqFRA4N9Mwi3YrsU1cghTnnJhX10zx/FJEXrxR upyQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=MwWj9ekijv12iDbEn7vuZCjsvgidcmcKtSd/iPVo/3U=; b=fC/0RUQ1aqpqiibUqIPZnakgZIE6fdbZiojCJqPeZ4kjFQhJavWRIENmdIcMjckNAg WcDW57qm0aCSegV+QsR6RpD/XEffkAcFSlJUk24DhsPFQlhCJ5TA/zFRhSYhqHgoD+NG VJ6WcNhYkpAo0YnFB/iGNNk3Kgzpj+f+GKHGFuKpyRx8vsOVWKyp4FdSeaAeB+eUggtM EHbd+ZRSn+zY37Z1gdIXmM14POWra5ZhkBIYllJIoFsxhkCcDmqZieDDJS9XNF9Txjo5 B51V7fyWLSfDnmCEXEY4B4DqRwcrWDBlewHlbielTc4BIVjIp2jmrwXdxz1PySc9iG3k TZbw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@infradead.org header.s=bombadil.20210309 header.b="sX+/TxS5"; 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 u11-20020a170906b10b00b0077fd6028710si5629658ejy.670.2022.11.13.08.30.30; Sun, 13 Nov 2022 08:30:54 -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="sX+/TxS5"; 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 S235364AbiKMQ3i (ORCPT + 99 others); Sun, 13 Nov 2022 11:29:38 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:57494 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235368AbiKMQ3g (ORCPT ); Sun, 13 Nov 2022 11:29:36 -0500 Received: from bombadil.infradead.org (bombadil.infradead.org [IPv6:2607:7c80:54:3::133]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 90B677674; Sun, 13 Nov 2022 08:29:32 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=bombadil.20210309; h=Content-Transfer-Encoding: MIME-Version:References:In-Reply-To:Message-Id:Date:Subject:Cc:To:From:Sender :Reply-To:Content-Type:Content-ID:Content-Description; bh=MwWj9ekijv12iDbEn7vuZCjsvgidcmcKtSd/iPVo/3U=; b=sX+/TxS5zNNROlDDctzjyY/ZjS g7P6amhXAy3A8MTH2YivI6QAOzqoM4YVgs8bon154bEvl614EDxGvS2f3HDxjB7I6hMMGdMG6InpY xkKJw4QUdBwSO2h/Dq4l/Lrl9bljG5TKB1foSi9C6QjUZoA6e0u05s8pq5lAFvQU4f9MpKJqPc50q LRE4B0JVluK6OhlGeHkzpXprpb9lQag0JUEGY8odsXvbNBJuDM/Klzo6uXma3atSgB7lCPdC7eIgB j2kgdck8zIN/g0yA6fivbHDh17B+VYnKLv8frjkxP1MOvsOc+mjuES3PhtbINubHCyw4daLcEeNVz ffyH3KCg==; Received: from 213-225-8-167.nat.highway.a1.net ([213.225.8.167] helo=localhost) by bombadil.infradead.org with esmtpsa (Exim 4.94.2 #2 (Red Hat Linux)) id 1ouFrK-00CJs5-Tj; Sun, 13 Nov 2022 16:29:27 +0000 From: Christoph Hellwig To: Namjae Jeon , Sungjong Seo , Jan Kara , OGAWA Hirofumi , Mikulas Patocka , Dave Kleikamp , Bob Copeland Cc: 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: [PATCH 5/9] hfsplus: remove ->writepage Date: Sun, 13 Nov 2022 17:28:58 +0100 Message-Id: <20221113162902.883850-6-hch@lst.de> X-Mailer: git-send-email 2.30.2 In-Reply-To: <20221113162902.883850-1-hch@lst.de> References: <20221113162902.883850-1-hch@lst.de> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit 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.0 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_EF,HEADER_FROM_DIFFERENT_DOMAINS, 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 ->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 hfsplus_aops. Signed-off-by: Christoph Hellwig --- fs/hfsplus/inode.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/fs/hfsplus/inode.c b/fs/hfsplus/inode.c index aeab83ed1c9c6..d6572ad2407a7 100644 --- a/fs/hfsplus/inode.c +++ b/fs/hfsplus/inode.c @@ -170,12 +170,12 @@ const struct address_space_operations hfsplus_aops = { .dirty_folio = block_dirty_folio, .invalidate_folio = block_invalidate_folio, .read_folio = hfsplus_read_folio, - .writepage = hfsplus_writepage, .write_begin = hfsplus_write_begin, .write_end = generic_write_end, .bmap = hfsplus_bmap, .direct_IO = hfsplus_direct_IO, .writepages = hfsplus_writepages, + .migrate_folio = buffer_migrate_folio, }; const struct dentry_operations hfsplus_dentry_operations = { -- 2.30.2