diff options
author | Kent Overstreet <kent.overstreet@linux.dev> | 2023-10-23 23:21:54 +0300 |
---|---|---|
committer | Kent Overstreet <kent.overstreet@linux.dev> | 2023-10-31 19:18:38 +0300 |
commit | 96a363a7e68832054f2a93249335fd3efd870aa3 (patch) | |
tree | c644d5037e979d78f9f5b9cb4f5fe138540244b7 /fs/bcachefs/data_update.c | |
parent | d5eade93452bd1a892e2155e9bb723f04992bdac (diff) | |
download | linux-96a363a7e68832054f2a93249335fd3efd870aa3.tar.xz |
bcachefs: move: move_stats refactoring
data_progress_list is gone - it was redundant with moving_context_list
The upcoming rebalance rewrite is going to have it using two different
move_stats objects with the same moving_context, depending on whether
it's scanning or using the rebalance_work btree - this patch plumbs
stats around a bit differently so that will work.
Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev>
Diffstat (limited to 'fs/bcachefs/data_update.c')
-rw-r--r-- | fs/bcachefs/data_update.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/bcachefs/data_update.c b/fs/bcachefs/data_update.c index e445c441764c..4860f8293a4f 100644 --- a/fs/bcachefs/data_update.c +++ b/fs/bcachefs/data_update.c @@ -440,7 +440,7 @@ int bch2_data_update_init(struct btree_trans *trans, m->btree_id = btree_id; m->data_opts = data_opts; m->ctxt = ctxt; - m->stats = ctxt->stats; + m->stats = ctxt ? ctxt->stats : NULL; bch2_write_op_init(&m->op, c, io_opts); m->op.pos = bkey_start_pos(k.k); |