Skip to content

Commit a7c9add

Browse files
author
Kent Overstreet
committed
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 <[email protected]>
1 parent e87de7d commit a7c9add

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

fs/bcachefs/debug.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -492,6 +492,8 @@ static void bch2_cached_btree_node_to_text(struct printbuf *out, struct bch_fs *
492492
prt_printf(out, "journal pin %px:\t%llu\n",
493493
&b->writes[1].journal, b->writes[1].journal.seq);
494494

495+
prt_printf(out, "ob:\t%u\n", b->ob.nr);
496+
495497
printbuf_indent_sub(out, 2);
496498
}
497499

0 commit comments

Comments
 (0)