summaryrefslogtreecommitdiff
path: root/fs/bcachefs/movinggc.c
diff options
context:
space:
mode:
authorKent Overstreet <kent.overstreet@linux.dev>2023-04-29 23:21:51 +0300
committerKent Overstreet <kent.overstreet@linux.dev>2023-10-23 00:10:00 +0300
commit958c347b4b16dd3883c3765f5f99cacfe1b862b5 (patch)
treeaa1653d527a3fb2c531d502d8c44e329e417c36c /fs/bcachefs/movinggc.c
parent3140a3d0e990f5528707b676787faa7e29545f32 (diff)
downloadlinux-958c347b4b16dd3883c3765f5f99cacfe1b862b5.tar.xz
bcachefs: Mark bch2_copygc() noinline
This works around a "stack from too large" error. Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev>
Diffstat (limited to 'fs/bcachefs/movinggc.c')
-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)