mirror of
https://github.com/raspberrypi/linux.git
synced 2025-12-08 19:09:57 +00:00
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 <kent.overstreet@linux.dev>
This commit is contained in:
@@ -620,6 +620,9 @@ print:
|
|||||||
|
|
||||||
if (s)
|
if (s)
|
||||||
s->ret = ret;
|
s->ret = ret;
|
||||||
|
|
||||||
|
if (trans)
|
||||||
|
ret = bch2_trans_log_str(trans, bch2_sb_error_strs[err]) ?: ret;
|
||||||
err_unlock:
|
err_unlock:
|
||||||
mutex_unlock(&c->fsck_error_msgs_lock);
|
mutex_unlock(&c->fsck_error_msgs_lock);
|
||||||
err:
|
err:
|
||||||
|
|||||||
Reference in New Issue
Block a user