Commit 737759fc authored by Kent Overstreet's avatar Kent Overstreet
Browse files

bcachefs: Fix printbuf usage while atomic



Reported-by: default avatar <syzbot+f765e51170cf13493f0b@syzkaller.appspotmail.com>
Fixes: f12410bb ("bcachefs: Add an error message for insufficient rw journal devs")
Signed-off-by: default avatarKent Overstreet <kent.overstreet@linux.dev>
parent 7a086baa
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -206,6 +206,7 @@ void bch2_journal_space_available(struct journal *j)

	if (nr_online < metadata_replicas_required(c)) {
		struct printbuf buf = PRINTBUF;
		buf.atomic++;
		prt_printf(&buf, "insufficient writeable journal devices available: have %u, need %u\n"
			   "rw journal devs:", nr_online, metadata_replicas_required(c));