From a7c9add482c7b0e7e28433816fa9e8f7b890086e Mon Sep 17 00:00:00 2001 From: Kent Overstreet Date: Tue, 27 May 2025 14:39:43 -0400 Subject: [PATCH] bcachefs: Include b->ob.nr in cached_btree_node_to_text() We have a bug report that looks like we might be leaking open buckets - let's check if they got left attached to the cached btree node. Signed-off-by: Kent Overstreet --- fs/bcachefs/debug.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/fs/bcachefs/debug.c b/fs/bcachefs/debug.c index 4fa70634c90e1..04db3e0ed82bf 100644 --- a/fs/bcachefs/debug.c +++ b/fs/bcachefs/debug.c @@ -492,6 +492,8 @@ static void bch2_cached_btree_node_to_text(struct printbuf *out, struct bch_fs * prt_printf(out, "journal pin %px:\t%llu\n", &b->writes[1].journal, b->writes[1].journal.seq); + prt_printf(out, "ob:\t%u\n", b->ob.nr); + printbuf_indent_sub(out, 2); } -- 2.39.5