diff options
author | Christoph Hellwig <hch@lst.de> | 2022-12-02 11:26:41 +0100 |
---|---|---|
committer | Andrew Morton <akpm@linux-foundation.org> | 2022-12-11 18:12:18 -0800 |
commit | 12f9b9a73dc603e658bf24eed2777cecdaf4103e (patch) | |
tree | 769fe8f0aa9a43ea4a822cac1e86cbe352ff8598 /fs | |
parent | ba195d9f14829690b8e4f67549960d83169a314e (diff) | |
download | linux-stable-12f9b9a73dc603e658bf24eed2777cecdaf4103e.tar.gz linux-stable-12f9b9a73dc603e658bf24eed2777cecdaf4103e.tar.bz2 linux-stable-12f9b9a73dc603e658bf24eed2777cecdaf4103e.zip |
hfsplus: remove ->writepage
->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.
Set ->migrate_folio to the generic buffer_head based helper, and stop
wiring up ->writepage for hfsplus_aops.
Link: https://lkml.kernel.org/r/20221202102644.770505-5-hch@lst.de
Signed-off-by: Christoph Hellwig <hch@lst.de>
Acked-by: Johannes Weiner <hannes@cmpxchg.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Diffstat (limited to 'fs')
-rw-r--r-- | fs/hfsplus/inode.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/hfsplus/inode.c b/fs/hfsplus/inode.c index aeab83ed1c9c..d6572ad2407a 100644 --- a/fs/hfsplus/inode.c +++ b/fs/hfsplus/inode.c @@ -170,12 +170,12 @@ const struct address_space_operations hfsplus_aops = { .dirty_folio = block_dirty_folio, .invalidate_folio = block_invalidate_folio, .read_folio = hfsplus_read_folio, - .writepage = hfsplus_writepage, .write_begin = hfsplus_write_begin, .write_end = generic_write_end, .bmap = hfsplus_bmap, .direct_IO = hfsplus_direct_IO, .writepages = hfsplus_writepages, + .migrate_folio = buffer_migrate_folio, }; const struct dentry_operations hfsplus_dentry_operations = { |