bcachefs: Fix lock ordering with new btree cache code
authorKent Overstreet <kent.overstreet@gmail.com>
Mon, 15 Jun 2020 23:53:46 +0000 (19:53 -0400)
committerKent Overstreet <kent.overstreet@linux.dev>
Sun, 22 Oct 2023 21:08:41 +0000 (17:08 -0400)
commitd211b408abbcec99531bc262a8e9973c86a6d856
tree6c7f5345224655e5d65c49a21cb2ea21ed4ccd72
parent1d1867896210e0ed6d137cebea83abe01bbb8ffc
bcachefs: Fix lock ordering with new btree cache code

The code that checks lock ordering was recently changed to go off of the
pos of the btree node, rather than the iterator, but the btree cache
code didn't update to handle iterators that point to cached bkeys. Oops

Also, update various debug code.

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