From 96a363a7e68832054f2a93249335fd3efd870aa3 Mon Sep 17 00:00:00 2001 From: Kent Overstreet Date: Mon, 23 Oct 2023 16:21:54 -0400 Subject: 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 --- fs/bcachefs/data_update.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'fs/bcachefs/data_update.c') 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); -- cgit v1.2.3