summaryrefslogtreecommitdiff
path: root/fs/bcachefs/movinggc.c
diff options
context:
space:
mode:
authorKent Overstreet <kent.overstreet@gmail.com>2022-06-20 15:40:26 -0400
committerKent Overstreet <kent.overstreet@linux.dev>2023-10-22 17:09:35 -0400
commit0337cc7eeed19e81e50414b5199bb65029ca0ed5 (patch)
tree8b40f9191ccfa8adef47e178ffafa7149b77b69c /fs/bcachefs/movinggc.c
parentc91996c50a9ad6569cf9cb52e79c171f0d34814d (diff)
bcachefs: move.c refactoring
- add bch2_moving_ctxt_(init|exit) - split out __bch2_evacutae_bucket() which takes an existing moving_ctxt, this will be used for improving copygc performance by pipelining across multiple buckets Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev>
Diffstat (limited to 'fs/bcachefs/movinggc.c')
-rw-r--r--fs/bcachefs/movinggc.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/fs/bcachefs/movinggc.c b/fs/bcachefs/movinggc.c
index 8b6ad9ec72af..49fb405c1430 100644
--- a/fs/bcachefs/movinggc.c
+++ b/fs/bcachefs/movinggc.c
@@ -314,10 +314,10 @@ static int bch2_copygc(struct bch_fs *c)
0, POS_MIN,
BTREE_ID_NR, POS_MAX,
NULL,
- writepoint_ptr(&c->copygc_write_point),
- copygc_pred, NULL,
&move_stats,
- false);
+ writepoint_ptr(&c->copygc_write_point),
+ false,
+ copygc_pred, NULL);
if (ret < 0)
bch_err(c, "error %i from bch2_move_data() in copygc", ret);
if (ret)