Received: by 2002:a05:6358:d09b:b0:dc:cd0c:909e with SMTP id jc27csp4565585rwb; Sun, 13 Nov 2022 08:30:12 -0800 (PST) X-Google-Smtp-Source: AA0mqf73DwZ0r4qzvt8lJUbgiQGwxuyF9DkraYGNPfxDV55n/CJi9BhErsEZBlHw9WgdxOothWR3 X-Received: by 2002:a17:906:6a18:b0:7a5:e944:9e48 with SMTP id qw24-20020a1709066a1800b007a5e9449e48mr8437607ejc.109.1668357011856; Sun, 13 Nov 2022 08:30:11 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1668357011; cv=none; d=google.com; s=arc-20160816; b=y261Svpxe5A+r2HI1+R7dHhqwSUhVCZpCl/DI4GQWsGYiNmWYzPWUb97Q82bzXCbGU As3NlTrNO4B3LVw90VrwQ1asNzf83BqCTGH4LRxvIVoN/lMct3GIgLxSzI7J6ZMjEpIi PELrxgZcdFr5Oc6zTAzYUb7FDoUCEuZm2ETGDcMzwIu5Hw0BIqtqxOq4EqOVBDa6b1Qb RBV9A0PPd+clsozP7hM2ZPuP0OZvOHJTU5viP+5o0TAahh8My2RqCi7nC1BDE6wU6Dbb dAiGZ2KMlD3g0kMsQ6pNCR3hARluvmKceOnIeJ1P1sCObNZuMbeSj23DcBigQtpLJfTA J2GQ== 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=5b0HJs6BQQ2q0Kk5NRtkmifAYyqmzj66xADh1qM10M0=; b=Pdpw/rfzmeoD/JQRq22A6w7GMzSmnHcB3msyVsmOqyQCGyhT3+xI1clhMVjvtHpnux 2dWENfFLWeh7RAoEYMyADR35Fmhb5iy4LyI7Ogq6DoM4SHQKhQgSEwnS19HwzFtTnBw4 CJRLyPRebYBqWbIydpyjTZQMP//vknRZ1ZmV35q/DuaOMmIs0KEsGSu0JPDc4m36NtLg KHsEUHu/HQ/GwLbXnAwjO+QGQ1xsDyqj0n+aQet/nhskMjjKqAeU2YaMk43WFoK42VHR tT/qr3BPSAZswyId2xfzmt+uK3AMq23yligE/5Gt8REIKo2zscEVqLinEU0p8wRgB033 T5pg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@infradead.org header.s=bombadil.20210309 header.b=KGgZVJw+; 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 bt15-20020a170906b14f00b007adf9d69424si5172464ejb.586.2022.11.13.08.29.42; Sun, 13 Nov 2022 08:30:11 -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=KGgZVJw+; 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 S235273AbiKMQ3T (ORCPT + 99 others); Sun, 13 Nov 2022 11:29:19 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:57396 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232884AbiKMQ3S (ORCPT ); Sun, 13 Nov 2022 11:29:18 -0500 Received: from bombadil.infradead.org (bombadil.infradead.org [IPv6:2607:7c80:54:3::133]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 8B3F19FE9; Sun, 13 Nov 2022 08:29:17 -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=5b0HJs6BQQ2q0Kk5NRtkmifAYyqmzj66xADh1qM10M0=; b=KGgZVJw+zfxpaLBuhQjRpHNEYn 10b8xdf3xvPFTiPuWr1zXm+4e+1+9Milh54Dzt4O/GuaWAVilFEiAvWu+wkdn3bFwnb4Q11uSLIrd 0EuYf5pAvNmhIJN9X3+rcL9wzs8lBEAclVOfiFxKEmOp4hsxiMNcGoji1TeYzgaBo4kpirTcC02AZ Szw8ic2CR+yHIghaQGROTusREc56h/Ozn5JBc4l85U2JToj1xU53uwDNLe2NyNH+wLdZwzic2GQlA 5+pWB5gWan9ujAYVO57mZe/hVhpQrC+TwgbQhYX9n4citW6+c86b3rCQ459lmbZslOI02aUu19r6G /2FcORkA==; 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 1ouFr4-00CJnJ-EB; Sun, 13 Nov 2022 16:29:11 +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 1/9] extfat: remove ->writepage Date: Sun, 13 Nov 2022 17:28:54 +0100 Message-Id: <20221113162902.883850-2-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 remove the ->writepage implementation. Signed-off-by: Christoph Hellwig --- fs/exfat/inode.c | 9 ++------- 1 file changed, 2 insertions(+), 7 deletions(-) diff --git a/fs/exfat/inode.c b/fs/exfat/inode.c index 5590a1e83126c..eac95bcd9a8aa 100644 --- a/fs/exfat/inode.c +++ b/fs/exfat/inode.c @@ -345,11 +345,6 @@ static void exfat_readahead(struct readahead_control *rac) mpage_readahead(rac, exfat_get_block); } -static int exfat_writepage(struct page *page, struct writeback_control *wbc) -{ - return block_write_full_page(page, exfat_get_block, wbc); -} - static int exfat_writepages(struct address_space *mapping, struct writeback_control *wbc) { @@ -473,12 +468,12 @@ static const struct address_space_operations exfat_aops = { .invalidate_folio = block_invalidate_folio, .read_folio = exfat_read_folio, .readahead = exfat_readahead, - .writepage = exfat_writepage, .writepages = exfat_writepages, .write_begin = exfat_write_begin, .write_end = exfat_write_end, .direct_IO = exfat_direct_IO, - .bmap = exfat_aop_bmap + .bmap = exfat_aop_bmap, + .migrate_folio = buffer_migrate_folio, }; static inline unsigned long exfat_hash(loff_t i_pos) -- 2.30.2