diff options
author | Kent Overstreet <kent.overstreet@gmail.com> | 2020-06-16 01:53:46 +0200 |
---|---|---|
committer | Kent Overstreet <kent.overstreet@linux.dev> | 2023-10-22 23:08:41 +0200 |
commit | d211b408abbcec99531bc262a8e9973c86a6d856 (patch) | |
tree | 6c7f5345224655e5d65c49a21cb2ea21ed4ccd72 /fs/bcachefs/btree_key_cache.h | |
parent | bcachefs: delete a slightly faulty assertion (diff) | |
download | linux-d211b408abbcec99531bc262a8e9973c86a6d856.tar.xz linux-d211b408abbcec99531bc262a8e9973c86a6d856.zip |
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>
Diffstat (limited to 'fs/bcachefs/btree_key_cache.h')
-rw-r--r-- | fs/bcachefs/btree_key_cache.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/fs/bcachefs/btree_key_cache.h b/fs/bcachefs/btree_key_cache.h index fbc29336091f..b1756c6c622c 100644 --- a/fs/bcachefs/btree_key_cache.h +++ b/fs/bcachefs/btree_key_cache.h @@ -20,4 +20,6 @@ void bch2_fs_btree_key_cache_exit(struct btree_key_cache *); void bch2_fs_btree_key_cache_init_early(struct btree_key_cache *); int bch2_fs_btree_key_cache_init(struct btree_key_cache *); +void bch2_btree_key_cache_to_text(struct printbuf *, struct btree_key_cache *); + #endif /* _BCACHEFS_BTREE_KEY_CACHE_H */ |