From 958c347b4b16dd3883c3765f5f99cacfe1b862b5 Mon Sep 17 00:00:00 2001 From: Kent Overstreet Date: Sat, 29 Apr 2023 16:21:51 -0400 Subject: [PATCH] bcachefs: Mark bch2_copygc() noinline This works around a "stack from too large" error. Signed-off-by: Kent Overstreet --- fs/bcachefs/movinggc.c | 1 + 1 file changed, 1 insertion(+) diff --git a/fs/bcachefs/movinggc.c b/fs/bcachefs/movinggc.c index 02081ee1a114..bd5d5221788a 100644 --- a/fs/bcachefs/movinggc.c +++ b/fs/bcachefs/movinggc.c @@ -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) -- 2.20.1