diff options
| author | Kent Overstreet <kent.overstreet@linux.dev> | 2025-02-25 18:50:38 -0500 |
|---|---|---|
| committer | Kent Overstreet <kent.overstreet@linux.dev> | 2025-03-14 21:02:16 -0400 |
| commit | d5308203a85e016e9ceb3e38742a1634c77a7706 (patch) | |
| tree | 6567cfb4cf4458b3b8627d9724c2aa026a6f0fec /fs/bcachefs/super-io.c | |
| parent | bcachefs: Make sure c->vfs_sb is set before starting fs (diff) | |
| download | linux-d5308203a85e016e9ceb3e38742a1634c77a7706.tar.gz linux-d5308203a85e016e9ceb3e38742a1634c77a7706.zip | |
bcachefs: Implement blk_holder_ops
We can't use the standard fs_holder_ops because they're meant for single
device filesystems - fs_bdev_mark_dead() in particular - and they assume
that the blk_holder is the super_block, which also doesn't work for a
multi device filesystem.
These generally follow the standard fs_holder_ops; the
locking/refcounting is a bit simplified because c->ro_ref suffices, and
bch2_fs_bdev_mark_dead() is not necessarily shutting down the entire
filesystem.
Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev>
Diffstat (limited to 'fs/bcachefs/super-io.c')
| -rw-r--r-- | fs/bcachefs/super-io.c | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/fs/bcachefs/super-io.c b/fs/bcachefs/super-io.c index 74f1e45980db..918e4e7704dd 100644 --- a/fs/bcachefs/super-io.c +++ b/fs/bcachefs/super-io.c @@ -25,9 +25,6 @@ #include <linux/sort.h> #include <linux/string_choices.h> -static const struct blk_holder_ops bch2_sb_handle_bdev_ops = { -}; - struct bch2_metadata_version { u16 version; const char *name; |
