bcachefs: Fix GFP_KERNEL allocation in break_cycle()
authorKent Overstreet <kent.overstreet@linux.dev>
Mon, 3 Jun 2024 02:52:24 +0000 (22:52 -0400)
committerKent Overstreet <kent.overstreet@linux.dev>
Wed, 5 Jun 2024 14:44:08 +0000 (10:44 -0400)
Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev>
fs/bcachefs/btree_locking.c

index c3e9b0c..d66fff2 100644 (file)
@@ -215,6 +215,7 @@ static noinline int break_cycle(struct lock_graph *g, struct printbuf *cycle)
 
        if (unlikely(!best)) {
                struct printbuf buf = PRINTBUF;
+               buf.atomic++;
 
                prt_printf(&buf, bch2_fmt(g->g->trans->c, "cycle of nofail locks"));