Skip to content

Commit 737759f

Browse files
author
Kent Overstreet
committed
bcachefs: Fix printbuf usage while atomic
Reported-by: [email protected] Fixes: f12410b ("bcachefs: Add an error message for insufficient rw journal devs") Signed-off-by: Kent Overstreet <[email protected]>
1 parent 7a086ba commit 737759f

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

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)