diff options
author | 2025-03-28 12:01:41 -0400 | |
---|---|---|
committer | 2025-03-28 12:36:32 -0400 | |
commit | 6b1e0b9e182e4f2117a1c72947d4ab26f43533d8 (patch) | |
tree | f02a69a0c4fbf55e1b7e3e20832d31166debd1d5 /fs/bcachefs/journal_io.c | |
parent | bcachefs: add missing newline in bch2_trans_updates_to_text() (diff) | |
download | wireguard-linux-6b1e0b9e182e4f2117a1c72947d4ab26f43533d8.tar.xz wireguard-linux-6b1e0b9e182e4f2117a1c72947d4ab26f43533d8.zip |
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 <kent.overstreet@linux.dev>
Diffstat (limited to '')
-rw-r--r-- | fs/bcachefs/journal_io.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/fs/bcachefs/journal_io.c b/fs/bcachefs/journal_io.c index 4ed6137f0439..bce4fa2648a2 100644 --- a/fs/bcachefs/journal_io.c +++ b/fs/bcachefs/journal_io.c @@ -308,8 +308,8 @@ static void journal_entry_err_msg(struct printbuf *out, break; \ case WRITE: \ bch2_sb_error_count(c, BCH_FSCK_ERR_##_err); \ - bch_err(c, "corrupt metadata before write: %s\n", _buf.buf);\ - if (bch2_fs_inconsistent(c)) { \ + if (bch2_fs_inconsistent(c, \ + "corrupt metadata before write: %s\n", _buf.buf)) {\ ret = -BCH_ERR_fsck_errors_not_fixed; \ goto fsck_err; \ } \ |