Skip to content

Commit 6b1e0b9

Browse files
author
Kent Overstreet
committed
bcachefs: fix logging in journal_entry_err_msg()
We want to log errors all at once, not spread across multiple printks. Signed-off-by: Kent Overstreet <[email protected]>
1 parent ff4e0f7 commit 6b1e0b9

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

fs/bcachefs/journal_io.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -308,8 +308,8 @@ static void journal_entry_err_msg(struct printbuf *out,
308308
break; \
309309
case WRITE: \
310310
bch2_sb_error_count(c, BCH_FSCK_ERR_##_err); \
311-
bch_err(c, "corrupt metadata before write: %s\n", _buf.buf);\
312-
if (bch2_fs_inconsistent(c)) { \
311+
if (bch2_fs_inconsistent(c, \
312+
"corrupt metadata before write: %s\n", _buf.buf)) {\
313313
ret = -BCH_ERR_fsck_errors_not_fixed; \
314314
goto fsck_err; \
315315
} \

0 commit comments

Comments
 (0)