]> www.infradead.org Git - users/willy/xarray.git/commit
bcachefs: Assert that we don't lock nodes when !trans->locked
authorKent Overstreet <kent.overstreet@linux.dev>
Sun, 30 Jun 2024 13:25:56 +0000 (09:25 -0400)
committerKent Overstreet <kent.overstreet@linux.dev>
Mon, 9 Sep 2024 13:41:49 +0000 (09:41 -0400)
commitf1625637b85191a0ac6f9ebf2b30d8b335f08547
treeccf79331f1289ac5540e8b35cfdfc3b2f56b7b29
parenta8cdf0ff46643305be6ae2d580d140bb3832af39
bcachefs: Assert that we don't lock nodes when !trans->locked

We rely on the trans->locked to know if a trans has nodes locked for
assertions about deadlocks; there can't be more than one trans in the
same process that is locked.

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