summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKent Overstreet <kent.overstreet@gmail.com>2021-01-11 21:37:35 +0300
committerKent Overstreet <kent.overstreet@linux.dev>2023-10-23 00:08:51 +0300
commitb929bbef6f9284350ad3e23a77a822a5bb2fec3d (patch)
tree5c57b4935c817a9114b0b5cf5aaab236e45f00ed
parent032ac32c516403cd0d5ebf30e233746271a7ddcc (diff)
downloadlinux-b929bbef6f9284350ad3e23a77a822a5bb2fec3d.tar.xz
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>
-rw-r--r--fs/bcachefs/btree_cache.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/fs/bcachefs/btree_cache.c b/fs/bcachefs/btree_cache.c
index d859cd26259b..904440f26d40 100644
--- a/fs/bcachefs/btree_cache.c
+++ b/fs/bcachefs/btree_cache.c
@@ -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);
}