Lines Matching refs:data_opts
127 if (((1U << i) & m->data_opts.rewrite_ptrs) && in trace_move_extent_fail2()
136 (m->data_opts.rewrite_ptrs & (1 << 0)) != 0, in trace_move_extent_fail2()
137 (m->data_opts.rewrite_ptrs & (1 << 1)) != 0, in trace_move_extent_fail2()
138 (m->data_opts.rewrite_ptrs & (1 << 2)) != 0, in trace_move_extent_fail2()
139 (m->data_opts.rewrite_ptrs & (1 << 3)) != 0); in trace_move_extent_fail2()
236 if (((1U << i) & m->data_opts.rewrite_ptrs) && in __bch2_data_update_index_update()
246 if (m->data_opts.rewrite_ptrs && in __bch2_data_update_index_update()
372 m->data_opts.btree_insert_flags); in __bch2_data_update_index_update()
527 struct data_update_opts *data_opts) in bch2_data_update_opts_to_text() argument
531 bch2_prt_u64_base2(out, data_opts->rewrite_ptrs); in bch2_data_update_opts_to_text()
535 bch2_prt_u64_base2(out, data_opts->kill_ptrs); in bch2_data_update_opts_to_text()
539 bch2_target_to_text(out, c, data_opts->target); in bch2_data_update_opts_to_text()
550 prt_u64(out, data_opts->extra_replicas); in bch2_data_update_opts_to_text()
557 bch2_data_update_opts_to_text(out, m->op.c, &m->op.opts, &m->data_opts); in bch2_data_update_to_text()
564 struct data_update_opts *data_opts) in bch2_extent_drop_ptrs() argument
575 while (data_opts->kill_ptrs) { in bch2_extent_drop_ptrs()
576 unsigned i = 0, drop = __fls(data_opts->kill_ptrs); in bch2_extent_drop_ptrs()
579 data_opts->kill_ptrs ^= 1U << drop; in bch2_extent_drop_ptrs()
609 struct data_update_opts data_opts, in bch2_data_update_init() argument
617 unsigned i, reserve_sectors = k.k->size * data_opts.extra_replicas; in bch2_data_update_init()
640 m->data_opts = data_opts; in bch2_data_update_init()
647 m->op.target = data_opts.target; in bch2_data_update_init()
654 m->data_opts.write_flags; in bch2_data_update_init()
656 m->op.watermark = m->data_opts.btree_insert_flags & BCH_WATERMARK_MASK; in bch2_data_update_init()
664 if (BIT(i) & m->data_opts.rewrite_ptrs) { in bch2_data_update_init()
670 } else if (!(BIT(i) & m->data_opts.kill_ptrs)) { in bch2_data_update_init()
704 m->data_opts.extra_replicas; in bch2_data_update_init()
722 m->data_opts.kill_ptrs |= m->data_opts.rewrite_ptrs; in bch2_data_update_init()
723 m->data_opts.rewrite_ptrs = 0; in bch2_data_update_init()
726 ret = bch2_extent_drop_ptrs(trans, iter, k, &io_opts, &m->data_opts); in bch2_data_update_init()
732 m->data_opts.extra_replicas in bch2_data_update_init()