Commit a27c442d authored by Christoph Hellwig's avatar Christoph Hellwig Committed by Jan Kara

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: default avatarChristoph Hellwig <hch@lst.de>
Signed-off-by: default avatarJan Kara <jack@suse.cz>
parent bc943f48
...@@ -869,11 +869,6 @@ int ext2_fiemap(struct inode *inode, struct fiemap_extent_info *fieinfo, ...@@ -869,11 +869,6 @@ int ext2_fiemap(struct inode *inode, struct fiemap_extent_info *fieinfo,
return ret; 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) static int ext2_read_folio(struct file *file, struct folio *folio)
{ {
return mpage_read_folio(folio, ext2_get_block); return mpage_read_folio(folio, ext2_get_block);
...@@ -948,7 +943,6 @@ const struct address_space_operations ext2_aops = { ...@@ -948,7 +943,6 @@ const struct address_space_operations ext2_aops = {
.invalidate_folio = block_invalidate_folio, .invalidate_folio = block_invalidate_folio,
.read_folio = ext2_read_folio, .read_folio = ext2_read_folio,
.readahead = ext2_readahead, .readahead = ext2_readahead,
.writepage = ext2_writepage,
.write_begin = ext2_write_begin, .write_begin = ext2_write_begin,
.write_end = ext2_write_end, .write_end = ext2_write_end,
.bmap = ext2_bmap, .bmap = ext2_bmap,
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment