Commit 36273e5b authored by Christoph Hellwig's avatar Christoph Hellwig Committed by Jan Kara

udf: 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.

Set ->migrate_folio to the generic buffer_head based helper, and remove
the ->writepage implementation in extfat.
Signed-off-by: default avatarChristoph Hellwig <hch@lst.de>
Signed-off-by: default avatarJan Kara <jack@suse.cz>
parent a27c442d
...@@ -182,11 +182,6 @@ static void udf_write_failed(struct address_space *mapping, loff_t to) ...@@ -182,11 +182,6 @@ static void udf_write_failed(struct address_space *mapping, loff_t to)
} }
} }
static int udf_writepage(struct page *page, struct writeback_control *wbc)
{
return block_write_full_page(page, udf_get_block, wbc);
}
static int udf_writepages(struct address_space *mapping, static int udf_writepages(struct address_space *mapping,
struct writeback_control *wbc) struct writeback_control *wbc)
{ {
...@@ -239,12 +234,12 @@ const struct address_space_operations udf_aops = { ...@@ -239,12 +234,12 @@ const struct address_space_operations udf_aops = {
.invalidate_folio = block_invalidate_folio, .invalidate_folio = block_invalidate_folio,
.read_folio = udf_read_folio, .read_folio = udf_read_folio,
.readahead = udf_readahead, .readahead = udf_readahead,
.writepage = udf_writepage,
.writepages = udf_writepages, .writepages = udf_writepages,
.write_begin = udf_write_begin, .write_begin = udf_write_begin,
.write_end = generic_write_end, .write_end = generic_write_end,
.direct_IO = udf_direct_IO, .direct_IO = udf_direct_IO,
.bmap = udf_bmap, .bmap = udf_bmap,
.migrate_folio = buffer_migrate_folio,
}; };
/* /*
......
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