Skip to content

Commit b43f724

Browse files
author
Kent Overstreet
committed
bcachefs: Log fsck errors in the journal
Log the specific error being corrected in the journal when we're repairing, this helps greatly with 'bcachefs list_journal' analysis. Signed-off-by: Kent Overstreet <[email protected]>
1 parent 47fe65b commit b43f724

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

fs/bcachefs/error.c

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -620,6 +620,9 @@ int __bch2_fsck_err(struct bch_fs *c,
620620

621621
if (s)
622622
s->ret = ret;
623+
624+
if (trans)
625+
ret = bch2_trans_log_str(trans, bch2_sb_error_strs[err]) ?: ret;
623626
err_unlock:
624627
mutex_unlock(&c->fsck_error_msgs_lock);
625628
err:

0 commit comments

Comments
 (0)