Received: by 2002:a05:6358:d09b:b0:dc:cd0c:909e with SMTP id jc27csp4565737rwb; Sun, 13 Nov 2022 08:30:21 -0800 (PST) X-Google-Smtp-Source: AA0mqf5F+gqdc2ONTGgANUUAtUcCWBp01dE6esB8m0Pd9xRK87Tj0FZ+kcSMV7JkK/xjXMd5swHv X-Received: by 2002:a17:906:63d2:b0:7a7:7e9:4aea with SMTP id u18-20020a17090663d200b007a707e94aeamr8025348ejk.3.1668357021264; Sun, 13 Nov 2022 08:30:21 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1668357021; cv=none; d=google.com; s=arc-20160816; b=j8GP3szbgUvYRElDeojpMXvy5M0r4L2NxOFOLllIJyY+lvvuzZ/2b1x7ajbFVMJKSC yisDmFP3JFBuN6n87Cksf3kVpze6lgBJUOL7oCDdUtLpZrdEJqFgD9qNoAYC0JsRCw2C 2HbFe7SWDqFoamM9CsqpWrFBGxMFKZEE4UzeaWtKsVGXT8AAZyd5nH3XR9biWYS4T6+h vUgFeU375ozn04EiV8UAZu70xk6GDnXFn4ADaotEN3M/3H1II3hmaq+9JOsD82DwYbtM Rcyq37pqcKhijQ3tgHhGC9Rya9qUrr2nkCtPL60WhL8K6wt19CrMalrVLzDACZ2IqUDp xmvQ== 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=5EEi8cInv3ks31I/nmTl0wJaf2VmtmozgKaSoblZ/nw=; b=l8zsT12EFmp2qUatBsbY8T3nhiLCTf3LlN14283h6g2PJ0B+pqpS1DP5meG+mG9Jg5 edZerrZ3HdPPciWQUs47jf3ZPBJO3d45Tbv1q1qpwQEVSwMIbdLCkxkv1ZDstknn2GpJ aOI+alp8DjA9MIFDz65MKNFcQkD0nM33HDIIp0oTjcaGZl7d0llCMjuU6icKgM7/ZUeU m089LoWuS6C4PjmpPvHn7+U/J/8UhgaC6jEVcGQiNgR5qwd24hJJ3Fokd6WjsK81lOja sIwj2POtdEoWZUYd9Yd3I+5yHYVtk8kYsvZZsgMSGlI1TQ7aNreAYJauX0NwSQ3YTRTk VYHw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@infradead.org header.s=bombadil.20210309 header.b=1SbIPs1i; 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 qb24-20020a1709077e9800b0078e1a6fbe12si8333914ejc.16.2022.11.13.08.29.56; Sun, 13 Nov 2022 08:30:21 -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=1SbIPs1i; 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 S235344AbiKMQ3h (ORCPT + 99 others); Sun, 13 Nov 2022 11:29:37 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:57480 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235365AbiKMQ3a (ORCPT ); Sun, 13 Nov 2022 11:29:30 -0500 Received: from bombadil.infradead.org (bombadil.infradead.org [IPv6:2607:7c80:54:3::133]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 4E75610B50; Sun, 13 Nov 2022 08:29:29 -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=5EEi8cInv3ks31I/nmTl0wJaf2VmtmozgKaSoblZ/nw=; b=1SbIPs1iFU+7TJOgzkiJf2RvBs 2XzmwVKtUH+kZqH7A36H1Wbg+vKnJpDNlb6xKtvuTlKG0eGjPoQQYRvlscMAAocgvR6VMPofTIG2D C+y5XrFdah5UyaOY7msF15XC44ocxoaKSrFQ6FttO4KIK9nTS4cuGeLqvpIl9ulpzUdcM4c+JMwjM V8FaL9blLKhDvLC8WvpLfuXFxjXC9wudXB9FmyTMvzWE6wkwNl+IkzupEJSkEGn6t5dX2vBO8ZlRk HQdfmuqFBmta5GLulUNuImMueBME4ZGS+MBcQ/xhhfaXZ0G/j/xK5VJycJsTzRVisDdUNap2eB7Ql vz3UMr+A==; 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 1ouFrH-00CJqO-HX; Sun, 13 Nov 2022 16:29:24 +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 4/9] hfs: remove ->writepage Date: Sun, 13 Nov 2022 17:28:57 +0100 Message-Id: <20221113162902.883850-5-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 hfs_aops. Signed-off-by: Christoph Hellwig --- fs/hfs/inode.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/fs/hfs/inode.c b/fs/hfs/inode.c index c4526f16355d5..16466a5e88b44 100644 --- a/fs/hfs/inode.c +++ b/fs/hfs/inode.c @@ -173,12 +173,12 @@ const struct address_space_operations hfs_aops = { .dirty_folio = block_dirty_folio, .invalidate_folio = block_invalidate_folio, .read_folio = hfs_read_folio, - .writepage = hfs_writepage, .write_begin = hfs_write_begin, .write_end = generic_write_end, .bmap = hfs_bmap, .direct_IO = hfs_direct_IO, .writepages = hfs_writepages, + .migrate_folio = buffer_migrate_folio, }; /* -- 2.30.2