Commit b43f7249 authored by Kent Overstreet's avatar Kent Overstreet
Browse files

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: default avatarKent Overstreet <kent.overstreet@linux.dev>
parent 47fe65b1
Loading
Loading
Loading
Loading
+3 −0
Original line number Diff line number Diff line
@@ -620,6 +620,9 @@ int __bch2_fsck_err(struct bch_fs *c,

	if (s)
		s->ret = ret;

	if (trans)
		ret = bch2_trans_log_str(trans, bch2_sb_error_strs[err]) ?: ret;
err_unlock:
	mutex_unlock(&c->fsck_error_msgs_lock);
err: