mirror of
https://github.com/torvalds/linux.git
synced 2026-06-05 13:06:59 +02:00
bcachefs: Add cannibalize lock to btree_cache_to_text()
More debugging info is always a good thing. Signed-off-by: Kent Overstreet <kent.overstreet@gmail.com> Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev>
This commit is contained in:
parent
032ac32c51
commit
b929bbef6f
|
|
@ -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);
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user