bcachefs: data jobs, including rebalance wait for copygc.
authorDaniel Hill <daniel@gluo.nz>
Wed, 15 Jun 2022 14:06:43 +0000 (02:06 +1200)
committerKent Overstreet <kent.overstreet@linux.dev>
Sun, 22 Oct 2023 21:09:35 +0000 (17:09 -0400)
commitc91996c50a9ad6569cf9cb52e79c171f0d34814d
tree5676408c15b5ed709c1a551e7e0ac533c21981cf
parent7f5c5d20f01483ba53233e3e2c54848e0b2d9ecd
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>
fs/bcachefs/bcachefs.h
fs/bcachefs/move.c
fs/bcachefs/move.h
fs/bcachefs/movinggc.c
fs/bcachefs/rebalance.c