diff options
author | Kent Overstreet <kent.overstreet@gmail.com> | 2022-05-05 17:20:41 -0400 |
---|---|---|
committer | Kent Overstreet <kent.overstreet@linux.dev> | 2023-10-22 17:09:32 -0400 |
commit | facc81479cab081cbcb962bfbe5d61f25230d013 (patch) | |
tree | b6b7951e5ba5ef22b27ed449f2810060b9b9b2f9 /fs | |
parent | 372c11125a2e07485fcd4cb08601f24d8a3bc3c6 (diff) | |
download | linux-facc81479cab081cbcb962bfbe5d61f25230d013.tar.gz linux-facc81479cab081cbcb962bfbe5d61f25230d013.tar.bz2 linux-facc81479cab081cbcb962bfbe5d61f25230d013.zip |
bcachefs: Delete bch_writepage
Per Dave Chinner and the xfs folks, .writepage is no longer needed, and
it's better not to define it if .writepages is the intended path.
Signed-off-by: Kent Overstreet <kent.overstreet@gmail.com>
Diffstat (limited to 'fs')
-rw-r--r-- | fs/bcachefs/fs-io.c | 14 | ||||
-rw-r--r-- | fs/bcachefs/fs-io.h | 1 | ||||
-rw-r--r-- | fs/bcachefs/fs.c | 1 |
3 files changed, 0 insertions, 16 deletions
diff --git a/fs/bcachefs/fs-io.c b/fs/bcachefs/fs-io.c index 256b3dd0d4aa..ad51483ad764 100644 --- a/fs/bcachefs/fs-io.c +++ b/fs/bcachefs/fs-io.c @@ -1469,20 +1469,6 @@ int bch2_writepages(struct address_space *mapping, struct writeback_control *wbc return ret; } -int bch2_writepage(struct page *page, struct writeback_control *wbc) -{ - struct bch_fs *c = page->mapping->host->i_sb->s_fs_info; - struct bch_writepage_state w = - bch_writepage_state_init(c, to_bch_ei(page->mapping->host)); - int ret; - - ret = __bch2_writepage(page_folio(page), wbc, &w); - if (w.io) - bch2_writepage_do_io(&w); - - return ret; -} - /* buffered writes: */ int bch2_write_begin(struct file *file, struct address_space *mapping, diff --git a/fs/bcachefs/fs-io.h b/fs/bcachefs/fs-io.h index 64b16b44e25a..af905331542d 100644 --- a/fs/bcachefs/fs-io.h +++ b/fs/bcachefs/fs-io.h @@ -15,7 +15,6 @@ int __must_check bch2_write_inode_size(struct bch_fs *, struct bch_inode_info *, loff_t, unsigned); -int bch2_writepage(struct page *, struct writeback_control *); int bch2_read_folio(struct file *, struct folio *); int bch2_writepages(struct address_space *, struct writeback_control *); diff --git a/fs/bcachefs/fs.c b/fs/bcachefs/fs.c index d8cd32b5d765..b2bc28d0cf05 100644 --- a/fs/bcachefs/fs.c +++ b/fs/bcachefs/fs.c @@ -1113,7 +1113,6 @@ static const struct inode_operations bch_special_inode_operations = { }; static const struct address_space_operations bch_address_space_operations = { - .writepage = bch2_writepage, .read_folio = bch2_read_folio, .writepages = bch2_writepages, .readahead = bch2_readahead, |