From: Kent Overstreet Date: Sun, 1 Dec 2024 21:39:54 +0000 (-0500) Subject: bcachefs: Improve "unable to allocate journal write" message X-Git-Tag: v6.14-rc1~204^2~111 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=5cdaec193a85e32235e7dccb95c085acc50b8dbd;p=thirdparty%2Fkernel%2Flinux.git bcachefs: Improve "unable to allocate journal write" message Signed-off-by: Kent Overstreet --- diff --git a/fs/bcachefs/journal_io.c b/fs/bcachefs/journal_io.c index 1627f3e165171..bb69d80886b52 100644 --- a/fs/bcachefs/journal_io.c +++ b/fs/bcachefs/journal_io.c @@ -2036,8 +2036,9 @@ CLOSURE_CALLBACK(bch2_journal_write) struct printbuf buf = PRINTBUF; buf.atomic++; - prt_printf(&buf, bch2_fmt(c, "Unable to allocate journal write at seq %llu: %s"), + 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);