From: Kent Overstreet Date: Thu, 29 May 2025 19:02:37 +0000 (-0400) Subject: bcachefs: Add missing printbuf_reset() in bch2_check_dirent_inode_dirent() X-Git-Tag: v6.16-rc1~48^2~40 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=66621f016d792157fc661fe2cce40ab128009d79;p=thirdparty%2Fkernel%2Flinux.git 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 --- 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);