summaryrefslogtreecommitdiffstats
path: root/fs/bcachefs/rebalance.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/rebalance.c
parentc91996c50a9ad6569cf9cb52e79c171f0d34814d (diff)
downloadlinux-stable-0337cc7eeed19e81e50414b5199bb65029ca0ed5.tar.gz
linux-stable-0337cc7eeed19e81e50414b5199bb65029ca0ed5.tar.bz2
linux-stable-0337cc7eeed19e81e50414b5199bb65029ca0ed5.zip
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/rebalance.c')
-rw-r--r--fs/bcachefs/rebalance.c5
1 files changed, 3 insertions, 2 deletions
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;