diff options
author | Kent Overstreet <kent.overstreet@gmail.com> | 2022-06-20 22:40:26 +0300 |
---|---|---|
committer | Kent Overstreet <kent.overstreet@linux.dev> | 2023-10-23 00:09:35 +0300 |
commit | 0337cc7eeed19e81e50414b5199bb65029ca0ed5 (patch) | |
tree | 8b40f9191ccfa8adef47e178ffafa7149b77b69c /fs/bcachefs/movinggc.c | |
parent | c91996c50a9ad6569cf9cb52e79c171f0d34814d (diff) | |
download | linux-0337cc7eeed19e81e50414b5199bb65029ca0ed5.tar.xz |
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/movinggc.c')
-rw-r--r-- | fs/bcachefs/movinggc.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/fs/bcachefs/movinggc.c b/fs/bcachefs/movinggc.c index 8b6ad9ec72af..49fb405c1430 100644 --- a/fs/bcachefs/movinggc.c +++ b/fs/bcachefs/movinggc.c @@ -314,10 +314,10 @@ static int bch2_copygc(struct bch_fs *c) 0, POS_MIN, BTREE_ID_NR, POS_MAX, NULL, - writepoint_ptr(&c->copygc_write_point), - copygc_pred, NULL, &move_stats, - false); + writepoint_ptr(&c->copygc_write_point), + false, + copygc_pred, NULL); if (ret < 0) bch_err(c, "error %i from bch2_move_data() in copygc", ret); if (ret) |