aboutsummaryrefslogtreecommitdiff
path: root/fs/bcachefs/data_update.c
diff options
context:
space:
mode:
authorGravatar Kent Overstreet <kent.overstreet@linux.dev> 2023-10-23 16:21:54 -0400
committerGravatar Kent Overstreet <kent.overstreet@linux.dev> 2023-10-31 12:18:38 -0400
commit96a363a7e68832054f2a93249335fd3efd870aa3 (patch)
treec644d5037e979d78f9f5b9cb4f5fe138540244b7 /fs/bcachefs/data_update.c
parentbcachefs: move: convert to bbpos (diff)
downloadlinux-96a363a7e68832054f2a93249335fd3efd870aa3.tar.gz
linux-96a363a7e68832054f2a93249335fd3efd870aa3.tar.bz2
linux-96a363a7e68832054f2a93249335fd3efd870aa3.zip
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.c2
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);