diff options
author | 2025-03-30 09:30:04 -0400 | |
---|---|---|
committer | 2025-03-30 16:36:27 -0400 | |
commit | 2b47102b933a5f28a08f4811835cc3a7cdb1b324 (patch) | |
tree | b807dd6c0d1d7865b2a7432c560f59e8cdf8b6a6 /fs/bcachefs/journal_io.c | |
parent | bcachefs: Don't use designated initializers for disk_accounting_pos (diff) | |
download | wireguard-linux-2b47102b933a5f28a08f4811835cc3a7cdb1b324.tar.xz wireguard-linux-2b47102b933a5f28a08f4811835cc3a7cdb1b324.zip |
bcachefs: Reorder error messages that include journal debug
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 f461cb06df90..228e531921b7 100644 --- a/fs/bcachefs/journal_io.c +++ b/fs/bcachefs/journal_io.c @@ -2082,12 +2082,12 @@ CLOSURE_CALLBACK(bch2_journal_write) struct printbuf buf = PRINTBUF; buf.atomic++; + __bch2_journal_debug_to_text(&buf, j); + spin_unlock(&j->lock); prt_printf(&buf, bch2_fmt(c, "Unable to allocate journal write at seq %llu for %zu sectors: %s"), le64_to_cpu(w->data->seq), vstruct_sectors(w->data, c->block_bits), bch2_err_str(ret)); - __bch2_journal_debug_to_text(&buf, j); - spin_unlock(&j->lock); bch2_print_string_as_lines(KERN_ERR, buf.buf); printbuf_exit(&buf); } |