bcachefs: Fix lifetime in bch2_write_done(), add assertion
authorKent Overstreet <kent.overstreet@linux.dev>
Sat, 12 Aug 2023 20:52:33 +0000 (16:52 -0400)
committerKent Overstreet <kent.overstreet@linux.dev>
Sun, 22 Oct 2023 21:10:10 +0000 (17:10 -0400)
commitdf5a915a15a7343170f6ce707d807daa9efc245c
tree62c6bcb473cb503725751a2ad2351c441ad17b45
parent73ded163e5ec47d229683b32c501e548b745d032
bcachefs: Fix lifetime in bch2_write_done(), add assertion

We're hunting for an open_bucket leak, add an assertion to help track it
down: also, we can't use the bch_fs after dropping our write ref to it.

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