From 0337cc7eeed19e81e50414b5199bb65029ca0ed5 Mon Sep 17 00:00:00 2001 From: Kent Overstreet Date: Mon, 20 Jun 2022 15:40:26 -0400 Subject: 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 --- fs/bcachefs/rebalance.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'fs/bcachefs/rebalance.c') diff --git a/fs/bcachefs/rebalance.c b/fs/bcachefs/rebalance.c index 57082260fc00..1de8183ea295 100644 --- a/fs/bcachefs/rebalance.c +++ b/fs/bcachefs/rebalance.c @@ -253,9 +253,10 @@ static int bch2_rebalance_thread(void *arg) BTREE_ID_NR, POS_MAX, /* ratelimiting disabled for now */ NULL, /* &r->pd.rate, */ + &move_stats, writepoint_ptr(&c->rebalance_write_point), - rebalance_pred, NULL, - &move_stats, true); + true, + rebalance_pred, NULL); } return 0; -- cgit v1.2.3