diff options
author | Daniel Hill <daniel@gluo.nz> | 2022-06-16 02:06:43 +1200 |
---|---|---|
committer | Kent Overstreet <kent.overstreet@linux.dev> | 2023-10-22 17:09:35 -0400 |
commit | c91996c50a9ad6569cf9cb52e79c171f0d34814d (patch) | |
tree | 5676408c15b5ed709c1a551e7e0ac533c21981cf /fs/bcachefs/move.h | |
parent | 7f5c5d20f01483ba53233e3e2c54848e0b2d9ecd (diff) | |
download | linux-c91996c50a9ad6569cf9cb52e79c171f0d34814d.tar.gz linux-c91996c50a9ad6569cf9cb52e79c171f0d34814d.tar.bz2 linux-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/move.h')
-rw-r--r-- | fs/bcachefs/move.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/fs/bcachefs/move.h b/fs/bcachefs/move.h index fd5562909382..d362cb545c0b 100644 --- a/fs/bcachefs/move.h +++ b/fs/bcachefs/move.h @@ -35,7 +35,8 @@ int bch2_move_data(struct bch_fs *, struct bch_ratelimit *, struct write_point_specifier, move_pred_fn, void *, - struct bch_move_stats *); + struct bch_move_stats *, + bool); int bch2_data_job(struct bch_fs *, struct bch_move_stats *, |