diff options
author | Kent Overstreet <kent.overstreet@linux.dev> | 2023-08-03 18:18:21 -0400 |
---|---|---|
committer | Kent Overstreet <kent.overstreet@linux.dev> | 2023-10-22 17:10:10 -0400 |
commit | dbbfca9f41e86903501dded3fd494e1a56f3c310 (patch) | |
tree | 420efe295d44b76468cd3ad66164873374c790ab /fs/bcachefs/super.c | |
parent | 1e81f89b020758fb424f8bb0f13405706d29dfc7 (diff) | |
download | lwn-dbbfca9f41e86903501dded3fd494e1a56f3c310.tar.gz lwn-dbbfca9f41e86903501dded3fd494e1a56f3c310.zip |
bcachefs: Split up fs-io.[ch]
fs-io.c is too big - time for some reorganization
- fs-dio.c: direct io
- fs-pagecache.c: pagecache data structures (bch_folio), utility code
Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev>
Diffstat (limited to 'fs/bcachefs/super.c')
-rw-r--r-- | fs/bcachefs/super.c | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/fs/bcachefs/super.c b/fs/bcachefs/super.c index 7ec22631cdd3..de7bc0192c3d 100644 --- a/fs/bcachefs/super.c +++ b/fs/bcachefs/super.c @@ -30,6 +30,8 @@ #include "error.h" #include "fs.h" #include "fs-io.h" +#include "fs-io-buffered.h" +#include "fs-io-direct.h" #include "fsck.h" #include "inode.h" #include "io.h" @@ -469,6 +471,8 @@ static void __bch2_fs_free(struct bch_fs *c) bch2_fs_counters_exit(c); bch2_fs_snapshots_exit(c); bch2_fs_quota_exit(c); + bch2_fs_fs_io_direct_exit(c); + bch2_fs_fs_io_buffered_exit(c); bch2_fs_fsio_exit(c); bch2_fs_ec_exit(c); bch2_fs_encryption_exit(c); @@ -842,7 +846,9 @@ static struct bch_fs *bch2_fs_alloc(struct bch_sb *sb, struct bch_opts opts) bch2_fs_encryption_init(c) ?: bch2_fs_compress_init(c) ?: bch2_fs_ec_init(c) ?: - bch2_fs_fsio_init(c); + bch2_fs_fsio_init(c) ?: + bch2_fs_fs_io_buffered_init(c); + bch2_fs_fs_io_direct_init(c); if (ret) goto err; |