Commit 39d5d829 authored by Kent Overstreet's avatar Kent Overstreet
Browse files

bcachefs: Improve "unable to allocate journal write" message

parent e0d5bc6a
Loading
Loading
Loading
Loading
+3 −2
Original line number Diff line number Diff line
@@ -2034,7 +2034,8 @@ CLOSURE_CALLBACK(bch2_journal_write)
		struct printbuf buf = PRINTBUF;
		buf.atomic++;

		prt_printf(&buf, bch2_fmt(c, "Unable to allocate journal write: %s"),
		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);