Received: by 2002:a05:6358:d09b:b0:dc:cd0c:909e with SMTP id jc27csp4565742rwb; Sun, 13 Nov 2022 08:30:21 -0800 (PST) X-Google-Smtp-Source: AA0mqf6FA/p6YI8/MGCmKy1XDA6aly2KB/cumTZ1030FBoPRacF9vrTTC9vb89tHcX7EV3+W15Kv X-Received: by 2002:a17:906:a20b:b0:778:e3e2:8311 with SMTP id r11-20020a170906a20b00b00778e3e28311mr8196979ejy.342.1668357021336; 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=ydUEOSyz/x+q0R66Ow2cF0LG9ZczThCgmdQHL4GJu3WlbOfImIt62dZHn7ZoWuA/0+ pzB3QHkV6zyY4ZbeGUyQN6V+ETFkDvuZO1nxQlAnlxZmpOk0YzIqKAKFtq3A/1vQmZsN l9dQYgRxnXCVIR0zD/zZOKGcCbBNYEAnRFfOX3Q0hOK7ARrbDhrPtnE1c02ZIBnFM00t 8tXaBnAgz9UypAVYCHuXGkfB7GQA6b+onG7pzHXmE2eebslKk+w3DrrCKV93kxFeqWae f4gA39aJ8JAVMBE+ZWcjJHbopE442fpwTKL1hv4DhkrJJvL83WmY+eMa6oK/vo9M94qM 5+jg== 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=scMCwkPRF8Nb8DbgWIgHz66Xl/jY6KIfqEEGjQf+P/U=; b=rRaIPE5oY0cuAHnobf+REbO6IfZCCvhSIJ9xVuxxo38Y4Yjxdfg3cjoNgeod4vSLph wjrxT6mFHJnLKISf2U1uMkFxZStlyxlaRwrUBjrNvYUqsi3hJ9UudV3OJzj7uuZ5TCHN tpP3wDERTziIvfkR1j7FNIaMl8NHjAt9XCTcTzC+pglaB3Fpx4/KVNFtmyHCJfcGMQBp P48zQxAWIE2Lo89wmTCKlh2yYFvTmhRkE5yYHpthgAPohm1tvHQjRqbrysPUUfbsi4qW 2i5JEEQFmK70TTE+7h1yK6w80NxkIDVZaRTK7iPcxrs0GdFdDPlkTCwV+rjhhYpQ+pz8 68Ug== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@infradead.org header.s=bombadil.20210309 header.b=dZaZtRFd; 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 cq3-20020a056402220300b0045c9dbe290csi7034645edb.406.2022.11.13.08.29.57; 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=dZaZtRFd; 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 S235345AbiKMQ3X (ORCPT + 99 others); Sun, 13 Nov 2022 11:29:23 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:57416 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232884AbiKMQ3U (ORCPT ); Sun, 13 Nov 2022 11:29:20 -0500 Received: from bombadil.infradead.org (bombadil.infradead.org [IPv6:2607:7c80:54:3::133]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 6B663AE4C; Sun, 13 Nov 2022 08:29:20 -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=scMCwkPRF8Nb8DbgWIgHz66Xl/jY6KIfqEEGjQf+P/U=; b=dZaZtRFdFNTJOY1FQNyijDu7jO H93jBvSdtSrsZP6OEyZrMhY1VbI0CUpwlTsPpjDi+4lMAIL+Y4nj9p0RfOwK76YPLCYCt/1KwRRC3 mZ48JB/P7VnrTuDpgyoQX0CkNGnijcfT9NIM+zn4TAFb9MK+otp7w8IWEAt5belywKsJadLtrTwKC 5ogGIWtuIUx0hXNZbzkIc8f1O4z0MBzf1hvb0ROX8Xe+CQDlO7RbLOBqjH5j1gQ19+z+Zpat9BGDr FQac6xjD5NdZXpmfjfrNsG6sAx+Sj2tz3i+V05uvUNmWDZI7+6l9AoSFZwsUufAKr3RT/N5rfcils 92Ydrxtw==; 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 1ouFr8-00CJnt-Dv; Sun, 13 Nov 2022 16:29:15 +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 2/9] ext2: remove ->writepage Date: Sun, 13 Nov 2022 17:28:55 +0100 Message-Id: <20221113162902.883850-3-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. Signed-off-by: Christoph Hellwig --- fs/ext2/inode.c | 6 ------ 1 file changed, 6 deletions(-) diff --git a/fs/ext2/inode.c b/fs/ext2/inode.c index 918ab2f9e4c05..3b2e3e1e0fa25 100644 --- a/fs/ext2/inode.c +++ b/fs/ext2/inode.c @@ -869,11 +869,6 @@ int ext2_fiemap(struct inode *inode, struct fiemap_extent_info *fieinfo, return ret; } -static int ext2_writepage(struct page *page, struct writeback_control *wbc) -{ - return block_write_full_page(page, ext2_get_block, wbc); -} - static int ext2_read_folio(struct file *file, struct folio *folio) { return mpage_read_folio(folio, ext2_get_block); @@ -948,7 +943,6 @@ const struct address_space_operations ext2_aops = { .invalidate_folio = block_invalidate_folio, .read_folio = ext2_read_folio, .readahead = ext2_readahead, - .writepage = ext2_writepage, .write_begin = ext2_write_begin, .write_end = ext2_write_end, .bmap = ext2_bmap, -- 2.30.2