bcachefs: Mark bch2_copygc() noinline
authorKent Overstreet <kent.overstreet@linux.dev>
Sat, 29 Apr 2023 20:21:51 +0000 (16:21 -0400)
committerKent Overstreet <kent.overstreet@linux.dev>
Sun, 22 Oct 2023 21:10:00 +0000 (17:10 -0400)
This works around a "stack from too large" error.

Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev>
fs/bcachefs/movinggc.c

index 02081ee..bd5d522 100644 (file)
@@ -205,6 +205,7 @@ static int bch2_copygc_get_buckets(struct btree_trans *trans,
        return ret < 0 ? ret : 0;
 }
 
+noinline
 static int bch2_copygc(struct btree_trans *trans,
                       struct moving_context *ctxt,
                       struct buckets_in_flight *buckets_in_flight)