bcachefs: Print lock counts in debugs btree_transactions
authorKent Overstreet <kent.overstreet@linux.dev>
Tue, 23 Aug 2022 05:20:24 +0000 (01:20 -0400)
committerKent Overstreet <kent.overstreet@linux.dev>
Sun, 22 Oct 2023 21:09:39 +0000 (17:09 -0400)
commitc240c3a94427346f27a7ff48f02cbe03f2c2ebd6
tree8cff7106c897d4263258f6820831117286949749
parent14599cce443323ce23b4b266068b7018e42bd30c
bcachefs: Print lock counts in debugs btree_transactions

Improve our debugfs output, to help in debugging deadlocks: this shows,
for every btree node we print, the current number of readers/intent
locks/write locks held.

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