summaryrefslogtreecommitdiffstats
path: root/fs/bcachefs/rebalance.c
diff options
context:
space:
mode:
authorDaniel Hill <daniel@gluo.nz>2022-06-16 02:06:43 +1200
committerKent Overstreet <kent.overstreet@linux.dev>2023-10-22 17:09:35 -0400
commitc91996c50a9ad6569cf9cb52e79c171f0d34814d (patch)
tree5676408c15b5ed709c1a551e7e0ac533c21981cf /fs/bcachefs/rebalance.c
parent7f5c5d20f01483ba53233e3e2c54848e0b2d9ecd (diff)
downloadlinux-stable-c91996c50a9ad6569cf9cb52e79c171f0d34814d.tar.gz
linux-stable-c91996c50a9ad6569cf9cb52e79c171f0d34814d.tar.bz2
linux-stable-c91996c50a9ad6569cf9cb52e79c171f0d34814d.zip
bcachefs: data jobs, including rebalance wait for copygc.
move_ratelimit() now has a bool that specifies whether we want to wait for copygc to finish. When copygc is running, we're probably low on free buckets instead of consuming the remaining buckets, we want to wait for copygc to finish. This should help with performance, and run away bucket fragmentation. Signed-off-by: Daniel Hill <daniel@gluo.nz> Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev>
Diffstat (limited to 'fs/bcachefs/rebalance.c')
-rw-r--r--fs/bcachefs/rebalance.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/bcachefs/rebalance.c b/fs/bcachefs/rebalance.c
index 63b24dc9c917..57082260fc00 100644
--- a/fs/bcachefs/rebalance.c
+++ b/fs/bcachefs/rebalance.c
@@ -255,7 +255,7 @@ static int bch2_rebalance_thread(void *arg)
NULL, /* &r->pd.rate, */
writepoint_ptr(&c->rebalance_write_point),
rebalance_pred, NULL,
- &move_stats);
+ &move_stats, true);
}
return 0;