]> git.ipfire.org Git - thirdparty/kernel/linux.git/commitdiff
bcachefs: add missing printbuf_reset()
authorKent Overstreet <kent.overstreet@linux.dev>
Thu, 28 Nov 2024 21:09:04 +0000 (16:09 -0500)
committerKent Overstreet <kent.overstreet@linux.dev>
Sat, 21 Dec 2024 06:36:20 +0000 (01:36 -0500)
Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev>
fs/bcachefs/btree_gc.c

index 19db4d8aca88c4d1223fce01b4f4fe1bb5a27bb3..e59924cfe2bcad91ad48d548af78db008fd4d4c2 100644 (file)
@@ -521,6 +521,7 @@ int bch2_check_topology(struct bch_fs *c)
                struct btree_root *r = bch2_btree_id_root(c, i);
                bool reconstructed_root = false;
 
+               printbuf_reset(&buf);
                bch2_btree_id_to_text(&buf, i);
 
                if (r->error) {