Skip to content

Commit a27c442

Browse files
Christoph Hellwigjankara
authored andcommitted
ext2: remove ->writepage
->writepage is a very inefficient method to write back data, and only used through write_cache_pages or as a fallback when no ->migrate_folio method is present. Signed-off-by: Christoph Hellwig <[email protected]> Signed-off-by: Jan Kara <[email protected]>
1 parent bc943f4 commit a27c442

File tree

1 file changed

+0
-6
lines changed

1 file changed

+0
-6
lines changed

fs/ext2/inode.c

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -869,11 +869,6 @@ int ext2_fiemap(struct inode *inode, struct fiemap_extent_info *fieinfo,
869869
return ret;
870870
}
871871

872-
static int ext2_writepage(struct page *page, struct writeback_control *wbc)
873-
{
874-
return block_write_full_page(page, ext2_get_block, wbc);
875-
}
876-
877872
static int ext2_read_folio(struct file *file, struct folio *folio)
878873
{
879874
return mpage_read_folio(folio, ext2_get_block);
@@ -948,7 +943,6 @@ const struct address_space_operations ext2_aops = {
948943
.invalidate_folio = block_invalidate_folio,
949944
.read_folio = ext2_read_folio,
950945
.readahead = ext2_readahead,
951-
.writepage = ext2_writepage,
952946
.write_begin = ext2_write_begin,
953947
.write_end = ext2_write_end,
954948
.bmap = ext2_bmap,

0 commit comments

Comments
 (0)