bcachefs: Add new assertions for shutdown path
authorKent Overstreet <kent.overstreet@linux.dev>
Sun, 9 Jul 2023 19:13:30 +0000 (15:13 -0400)
committerKent Overstreet <kent.overstreet@linux.dev>
Sun, 22 Oct 2023 21:10:06 +0000 (17:10 -0400)
commit30a8278a1e2f627b1f28ab521e40eecacb223efc
tree0819826f0b4a4f140b0614bccc4a962f06a3824f
parent07f293c8630d5bdae1615e6add90c76fed333d20
bcachefs: Add new assertions for shutdown path

We've been seeing assertions pop that indicate the btree node cache or
key cache have dirty items when we just did a clean shutdown.

Add some more assertions so we can catch this when we're dirtying items.

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