bcachefs: Clear trans->locked before unlock
authorKent Overstreet <kent.overstreet@linux.dev>
Thu, 22 May 2025 20:04:15 +0000 (16:04 -0400)
committerKent Overstreet <kent.overstreet@linux.dev>
Fri, 23 May 2025 11:59:43 +0000 (07:59 -0400)
commitdf92f3500b3f78b8e0ed3faa95c15a834ea9a821
tree6d5490f38b140a94b647a71a402c184748a9c775
parenteb34365adae033659384d1dedae99f73abd9815a
bcachefs: Clear trans->locked before unlock

We're adding new should_be_locked assertions: it's going to be illegal
to unlock a should_be_locked path when trans->locked is true.

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