33 lines
1.2 KiB
Diff
33 lines
1.2 KiB
Diff
|
From c78ecd89876e031abd348b692b2b17f6d11a7bd0 Mon Sep 17 00:00:00 2001
|
||
|
From: Kent Overstreet <kent.overstreet@linux.dev>
|
||
|
Date: Sun, 1 Dec 2024 16:39:54 -0500
|
||
|
Subject: [PATCH 157/213] bcachefs: Improve "unable to allocate journal write"
|
||
|
message
|
||
|
Content-Type: text/plain; charset="utf-8"
|
||
|
Content-Transfer-Encoding: 8bit
|
||
|
|
||
|
Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev>
|
||
|
Signed-off-by: Alexander Miroshnichenko <alex@millerson.name>
|
||
|
---
|
||
|
fs/bcachefs/journal_io.c | 3 ++-
|
||
|
1 file changed, 2 insertions(+), 1 deletion(-)
|
||
|
|
||
|
diff --git a/fs/bcachefs/journal_io.c b/fs/bcachefs/journal_io.c
|
||
|
index 1627f3e16517..bb69d80886b5 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);
|
||
|
--
|
||
|
2.45.2
|
||
|
|