]> www.infradead.org Git - users/jedix/linux-maple.git/commitdiff
bcachefs: Improve "unable to allocate journal write" message
authorKent Overstreet <kent.overstreet@linux.dev>
Sun, 23 Jun 2024 06:13:44 +0000 (02:13 -0400)
committerKent Overstreet <kent.overstreet@linux.dev>
Sun, 14 Jul 2024 23:00:16 +0000 (19:00 -0400)
Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev>
fs/bcachefs/journal_io.c

index bf3433cc78beadf297e1888cdcd6f187adcf89c0..7a833a3f1c63a11489c0cab0014d29e297c60436 100644 (file)
@@ -2034,8 +2034,9 @@ CLOSURE_CALLBACK(bch2_journal_write)
                struct printbuf buf = PRINTBUF;
                buf.atomic++;
 
-               prt_printf(&buf, bch2_fmt(c, "Unable to allocate journal write: %s"),
-                          bch2_err_str(ret));
+               prt_printf(&buf, bch2_fmt(c, "Unable to allocate journal write at seq %llu: %s"),
+                                         le64_to_cpu(w->data->seq),
+                                         bch2_err_str(ret));
                __bch2_journal_debug_to_text(&buf, j);
                spin_unlock(&j->lock);
                bch2_print_string_as_lines(KERN_ERR, buf.buf);