Searched refs:io_opts (Results 1 – 4 of 4) sorted by relevance
/linux-6.12.1/fs/bcachefs/ |
D | move.c | 40 struct bch_io_opts *io_opts, in trace_move_extent2() argument 48 bch2_data_update_opts_to_text(&buf, c, io_opts, data_opts); in trace_move_extent2() 247 struct bch_io_opts io_opts, in bch2_move_extent() argument 259 trace_move_extent2(c, k, &io_opts, &data_opts); in bch2_move_extent() 269 return bch2_extent_drop_ptrs(trans, iter, k, &io_opts, &data_opts); in bch2_move_extent() 303 io->rbio.opts = io_opts; in bch2_move_extent() 314 io_opts, data_opts, iter->btree_id, k); in bch2_move_extent() 383 struct per_snapshot_io_opts *io_opts, in bch2_move_get_io_opts() argument 390 if (io_opts->cur_inum != extent_k.k->p.inode) { in bch2_move_get_io_opts() 391 io_opts->d.nr = 0; in bch2_move_get_io_opts() [all …]
|
D | move.h | 93 struct bch_io_opts io_opts; member 102 static inline void per_snapshot_io_opts_init(struct per_snapshot_io_opts *io_opts, struct bch_fs *c) in per_snapshot_io_opts_init() argument 104 memset(io_opts, 0, sizeof(*io_opts)); in per_snapshot_io_opts_init() 105 io_opts->fs_io_opts = bch2_opts_to_inode_opts(c->opts); in per_snapshot_io_opts_init() 108 static inline void per_snapshot_io_opts_exit(struct per_snapshot_io_opts *io_opts) in per_snapshot_io_opts_exit() argument 110 darray_exit(&io_opts->d); in per_snapshot_io_opts_exit()
|
D | rebalance.c | 204 struct bch_io_opts io_opts; in do_rebalance_extent() local 219 ret = bch2_move_get_io_opts_one(trans, &io_opts, k); in do_rebalance_extent() 232 ret = bch2_move_extent(ctxt, NULL, extent_iter, k, io_opts, data_opts); in do_rebalance_extent() 253 struct bch_io_opts *io_opts, in rebalance_pred() argument 259 target = io_opts->background_target; in rebalance_pred() 260 compression = background_compression(*io_opts); in rebalance_pred() 264 target = r ? r->target : io_opts->background_target; in rebalance_pred() 265 compression = r ? r->compression : background_compression(*io_opts); in rebalance_pred()
|
D | data_update.c | 526 struct bch_io_opts *io_opts, in bch2_data_update_opts_to_text() argument 543 bch2_compression_opt_to_text(out, background_compression(*io_opts)); in bch2_data_update_opts_to_text() 547 prt_u64(out, io_opts->data_replicas); in bch2_data_update_opts_to_text() 563 struct bch_io_opts *io_opts, in bch2_extent_drop_ptrs() argument 587 bch2_extent_normalize_by_opts(c, io_opts, bkey_i_to_s(n)); in bch2_extent_drop_ptrs() 608 struct bch_io_opts io_opts, in bch2_data_update_init() argument 644 bch2_write_op_init(&m->op, c, io_opts); in bch2_data_update_init() 655 m->op.compression_opt = background_compression(io_opts); in bch2_data_update_init() 693 unsigned durability_required = max(0, (int) (io_opts.data_replicas - durability_have)); in bch2_data_update_init() 726 ret = bch2_extent_drop_ptrs(trans, iter, k, &io_opts, &m->data_opts); in bch2_data_update_init()
|