bcachefs: Fix some refcounting bugs
authorKent Overstreet <kent.overstreet@gmail.com>
Sat, 8 May 2021 00:43:43 +0000 (20:43 -0400)
committerKent Overstreet <kent.overstreet@linux.dev>
Sun, 22 Oct 2023 21:09:03 +0000 (17:09 -0400)
commit3a402c8dabf11142d78d0f6174b50db6ba846c4e
tree5bdb84c3f734a1a74a9332f31d368f922d33f2a9
parent5bc38f44fa8e938044bb3b69c8881f3682fe97f6
bcachefs: Fix some refcounting bugs

We really need debug mode assertions that ca->ref and ca->io_ref are
used correctly.

Signed-off-by: Kent Overstreet <kent.overstreet@gmail.com>
Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev>
fs/bcachefs/alloc_background.c
fs/bcachefs/btree_gc.c
fs/bcachefs/buckets.c
fs/bcachefs/recovery.c
fs/bcachefs/super.c
fs/bcachefs/super.h