Skip to content

Commit 66621f0

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

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

fs/bcachefs/namei.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -768,6 +768,7 @@ static int bch2_check_dirent_inode_dirent(struct btree_trans *trans,
768768
ret = __bch2_fsck_write_inode(trans, target);
769769
}
770770
} else {
771+
printbuf_reset(&buf);
771772
bch2_bkey_val_to_text(&buf, c, d.s_c);
772773
prt_newline(&buf);
773774
bch2_bkey_val_to_text(&buf, c, bp_dirent.s_c);

0 commit comments

Comments
 (0)