From 66621f016d792157fc661fe2cce40ab128009d79 Mon Sep 17 00:00:00 2001 From: Kent Overstreet Date: Thu, 29 May 2025 15:02:37 -0400 Subject: [PATCH] bcachefs: Add missing printbuf_reset() in bch2_check_dirent_inode_dirent() We were accidentally including the contents from the previous fsck_err(). Signed-off-by: Kent Overstreet --- fs/bcachefs/namei.c | 1 + 1 file changed, 1 insertion(+) diff --git a/fs/bcachefs/namei.c b/fs/bcachefs/namei.c index ff7ba297d3ef0..c57da4029d367 100644 --- a/fs/bcachefs/namei.c +++ b/fs/bcachefs/namei.c @@ -768,6 +768,7 @@ static int bch2_check_dirent_inode_dirent(struct btree_trans *trans, ret = __bch2_fsck_write_inode(trans, target); } } else { + printbuf_reset(&buf); bch2_bkey_val_to_text(&buf, c, d.s_c); prt_newline(&buf); bch2_bkey_val_to_text(&buf, c, bp_dirent.s_c); -- 2.50.1