Lines Matching refs:data_opts
41 struct data_update_opts *data_opts) in trace_move_extent2() argument
48 bch2_data_update_opts_to_text(&buf, c, io_opts, data_opts); in trace_move_extent2()
248 struct data_update_opts data_opts) in bch2_move_extent() argument
259 trace_move_extent2(c, k, &io_opts, &data_opts); in bch2_move_extent()
264 bch2_data_update_opts_normalize(k, &data_opts); in bch2_move_extent()
266 if (!data_opts.rewrite_ptrs && in bch2_move_extent()
267 !data_opts.extra_replicas) { in bch2_move_extent()
268 if (data_opts.kill_ptrs) in bch2_move_extent()
269 return bch2_extent_drop_ptrs(trans, iter, k, &io_opts, &data_opts); in bch2_move_extent()
314 io_opts, data_opts, iter->btree_id, k); in bch2_move_extent()
514 struct data_update_opts data_opts; in bch2_move_data_btree() local
560 memset(&data_opts, 0, sizeof(data_opts)); in bch2_move_data_btree()
561 if (!pred(c, arg, k, io_opts, &data_opts)) in bch2_move_data_btree()
571 ret2 = bch2_move_extent(ctxt, NULL, &iter, k, *io_opts, data_opts); in bch2_move_data_btree()
663 struct data_update_opts data_opts; in bch2_evacuate_bucket() local
737 data_opts = _data_opts; in bch2_evacuate_bucket()
738 data_opts.target = io_opts.background_target; in bch2_evacuate_bucket()
739 data_opts.rewrite_ptrs = 0; in bch2_evacuate_bucket()
744 data_opts.rewrite_ptrs |= 1U << i; in bch2_evacuate_bucket()
754 &iter, k, io_opts, data_opts); in bch2_evacuate_bucket()
828 struct data_update_opts data_opts; in bch2_move_btree() local
862 if (!pred(c, arg, b, &io_opts, &data_opts)) in bch2_move_btree()
892 struct data_update_opts *data_opts) in rereplicate_pred() argument
906 data_opts->kill_ptrs |= BIT(i); in rereplicate_pred()
911 if (!data_opts->kill_ptrs && in rereplicate_pred()
915 data_opts->target = 0; in rereplicate_pred()
916 data_opts->extra_replicas = replicas - nr_good; in rereplicate_pred()
917 data_opts->btree_insert_flags = 0; in rereplicate_pred()
924 struct data_update_opts *data_opts) in migrate_pred() argument
930 data_opts->rewrite_ptrs = 0; in migrate_pred()
931 data_opts->target = 0; in migrate_pred()
932 data_opts->extra_replicas = 0; in migrate_pred()
933 data_opts->btree_insert_flags = 0; in migrate_pred()
937 data_opts->rewrite_ptrs |= 1U << i; in migrate_pred()
941 return data_opts->rewrite_ptrs != 0; in migrate_pred()
947 struct data_update_opts *data_opts) in rereplicate_btree_pred() argument
949 return rereplicate_pred(c, arg, bkey_i_to_s_c(&b->key), io_opts, data_opts); in rereplicate_btree_pred()
955 struct data_update_opts *data_opts) in migrate_btree_pred() argument
957 return migrate_pred(c, arg, bkey_i_to_s_c(&b->key), io_opts, data_opts); in migrate_btree_pred()
977 struct data_update_opts *data_opts) in rewrite_old_nodes_pred() argument
982 data_opts->target = 0; in rewrite_old_nodes_pred()
983 data_opts->extra_replicas = 0; in rewrite_old_nodes_pred()
984 data_opts->btree_insert_flags = 0; in rewrite_old_nodes_pred()
1015 struct data_update_opts *data_opts) in drop_extra_replicas_pred() argument
1030 data_opts->kill_ptrs |= BIT(i); in drop_extra_replicas_pred()
1038 return data_opts->kill_ptrs != 0; in drop_extra_replicas_pred()
1044 struct data_update_opts *data_opts) in drop_extra_replicas_btree_pred() argument
1046 return drop_extra_replicas_pred(c, arg, bkey_i_to_s_c(&b->key), io_opts, data_opts); in drop_extra_replicas_btree_pred()