Skip to content

Commit 39d5d82

Browse files
author
Kent Overstreet
committed
bcachefs: Improve "unable to allocate journal write" message
Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev>
1 parent e0d5bc6 commit 39d5d82

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

fs/bcachefs/journal_io.c

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2034,8 +2034,9 @@ CLOSURE_CALLBACK(bch2_journal_write)
20342034
struct printbuf buf = PRINTBUF;
20352035
buf.atomic++;
20362036

2037-
prt_printf(&buf, bch2_fmt(c, "Unable to allocate journal write: %s"),
2038-
bch2_err_str(ret));
2037+
prt_printf(&buf, bch2_fmt(c, "Unable to allocate journal write at seq %llu: %s"),
2038+
le64_to_cpu(w->data->seq),
2039+
bch2_err_str(ret));
20392040
__bch2_journal_debug_to_text(&buf, j);
20402041
spin_unlock(&j->lock);
20412042
bch2_print_string_as_lines(KERN_ERR, buf.buf);

0 commit comments

Comments
 (0)