Commit b929bbef authored by Kent Overstreet's avatar Kent Overstreet Committed by Kent Overstreet

bcachefs: Add cannibalize lock to btree_cache_to_text()

More debugging info is always a good thing.
Signed-off-by: default avatarKent Overstreet <kent.overstreet@gmail.com>
Signed-off-by: default avatarKent Overstreet <kent.overstreet@linux.dev>
parent 032ac32c
......@@ -1073,6 +1073,7 @@ void bch2_btree_node_to_text(struct printbuf *out, struct bch_fs *c,
void bch2_btree_cache_to_text(struct printbuf *out, struct bch_fs *c)
{
pr_buf(out, "nr nodes:\t%u\n", c->btree_cache.used);
pr_buf(out, "nr dirty:\t%u\n", atomic_read(&c->btree_cache.dirty));
pr_buf(out, "nr nodes:\t\t%u\n", c->btree_cache.used);
pr_buf(out, "nr dirty:\t\t%u\n", atomic_read(&c->btree_cache.dirty));
pr_buf(out, "cannibalize lock:\t%p\n", c->btree_cache.alloc_lock);
}
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment