]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
bcachefs: Implement blk_holder_ops
authorKent Overstreet <kent.overstreet@linux.dev>
Tue, 25 Feb 2025 23:50:38 +0000 (18:50 -0500)
committerKent Overstreet <kent.overstreet@linux.dev>
Sat, 15 Mar 2025 01:02:16 +0000 (21:02 -0400)
commitd5308203a85e016e9ceb3e38742a1634c77a7706
tree6567cfb4cf4458b3b8627d9724c2aa026a6f0fec
parent1fdbe0b184c822191e9385fac8d8695a9e583ec7
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>
fs/bcachefs/super-io.c
fs/bcachefs/super.c
fs/bcachefs/super.h