bcachefs: Fix locking assert
authorKent Overstreet <kent.overstreet@linux.dev>
Mon, 27 May 2024 06:40:06 +0000 (02:40 -0400)
committerKent Overstreet <kent.overstreet@linux.dev>
Tue, 28 May 2024 15:29:26 +0000 (11:29 -0400)
commit218e5e0c2a3acdb29ccbdfbfdd5e2def27d3aae2
tree521a82efc5e3cec1d2cb06dc811f058d1546c171
parent9e1a66e66870ebeebea9f674550118df3c12eaf6
bcachefs: Fix locking assert

We now track whether a transaction is locked, and verify that we don't
have nodes locked when the transaction isn't locked; reorder relocks to
not pop the new assert.

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