summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKent Overstreet <kent.overstreet@linux.dev>2023-04-29 16:21:51 -0400
committerKent Overstreet <kent.overstreet@linux.dev>2023-05-12 19:42:33 -0400
commitf1de5fe05168eee89e59a86cdddbd494d82f4957 (patch)
tree766ed3f4f4f01868e35b963252622317ffc58ed1
parent059622427b24643a485600940651b3bbf2a86943 (diff)
bcachefs: Mark bch2_copygc() noinline
This works around a "stack from too large" error. Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev>
-rw-r--r--fs/bcachefs/movinggc.c1
1 files changed, 1 insertions, 0 deletions
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)