From: Kent Overstreet Date: Mon, 3 Jun 2024 02:52:24 +0000 (-0400) Subject: bcachefs: Fix GFP_KERNEL allocation in break_cycle() X-Git-Url: https://www.infradead.org/git/?a=commitdiff_plain;h=9a64e1bfd8a10c015c41fe0d289e89862486c50d;p=users%2Fjedix%2Flinux-maple.git bcachefs: Fix GFP_KERNEL allocation in break_cycle() Signed-off-by: Kent Overstreet --- diff --git a/fs/bcachefs/btree_locking.c b/fs/bcachefs/btree_locking.c index c3e9b0cc7bbd..d66fff22109a 100644 --- a/fs/bcachefs/btree_locking.c +++ b/fs/bcachefs/btree_locking.c @@ -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"));