]> git.ipfire.org Git - thirdparty/linux.git/commitdiff
bcachefs: Include b->ob.nr in cached_btree_node_to_text()
authorKent Overstreet <kent.overstreet@linux.dev>
Tue, 27 May 2025 18:39:43 +0000 (14:39 -0400)
committerKent Overstreet <kent.overstreet@linux.dev>
Fri, 30 May 2025 05:21:13 +0000 (01:21 -0400)
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 <kent.overstreet@linux.dev>
fs/bcachefs/debug.c

index 4fa70634c90e1f80bad9a49348210af0359c16ee..04db3e0ed82bf4680de1495faf6720fd095d9945 100644 (file)
@@ -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);
 }