]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
bcachefs: Stash a pointer to the filesystem for blk_holder_ops
authorKent Overstreet <kent.overstreet@linux.dev>
Tue, 25 Feb 2025 23:58:46 +0000 (18:58 -0500)
committerKent Overstreet <kent.overstreet@linux.dev>
Sat, 15 Mar 2025 01:02:16 +0000 (21:02 -0400)
commit13fd6be102f75de25099757718c1de46fa57ae7a
tree56799a551c44b578fc40828967124affa6faf35d
parentb31c070407edda710ad087d143353ddd0f2c9499
bcachefs: Stash a pointer to the filesystem for blk_holder_ops

Note that we open block devices before we allocate bch_fs, but once
attached to a filesystem they will be closed before the bch_fs is torn
down - so stashing a pointer without a refcount looks incorrect but it's
not.

Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev>
fs/bcachefs/super-io.c
fs/bcachefs/super.c
fs/bcachefs/super_types.h