Skip to content

Commit 737759f

Browse files
author
Kent Overstreet
committed
bcachefs: Fix printbuf usage while atomic
Reported-by: syzbot+f765e51170cf13493f0b@syzkaller.appspotmail.com Fixes: f12410b ("bcachefs: Add an error message for insufficient rw journal devs") Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev>
1 parent 7a086ba commit 737759f

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

fs/bcachefs/journal_reclaim.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -206,6 +206,7 @@ void bch2_journal_space_available(struct journal *j)
206206

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

0 commit comments

Comments
 (0)