diff options
author | Christoph Hellwig <hch@lst.de> | 2022-11-13 17:28:55 +0100 |
---|---|---|
committer | Jan Kara <jack@suse.cz> | 2022-11-21 11:05:01 +0100 |
commit | a27c442d61cea70f38d9340528225b234888885b (patch) | |
tree | a483f35aa2ed70e42a1ae4ae71a428deb12a74f2 /fs/ext2 | |
parent | ext2: Don't flush page immediately for DIRSYNC directories (diff) | |
download | linux-a27c442d61cea70f38d9340528225b234888885b.tar.xz linux-a27c442d61cea70f38d9340528225b234888885b.zip |
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 <hch@lst.de>
Signed-off-by: Jan Kara <jack@suse.cz>
Diffstat (limited to 'fs/ext2')
-rw-r--r-- | fs/ext2/inode.c | 6 |
1 files changed, 0 insertions, 6 deletions
diff --git a/fs/ext2/inode.c b/fs/ext2/inode.c index 918ab2f9e4c0..3b2e3e1e0fa2 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, |