Lines Matching refs:insert
105 struct bkey_i *insert) in trace_io_move_finish2() argument
120 bch2_bkey_val_to_text(&buf, c, bkey_i_to_s_c(insert)); in trace_io_move_finish2()
130 struct bkey_i *insert, in trace_io_move_fail2() argument
143 if (insert) { in trace_io_move_fail2()
151 (ptr = bch2_extent_has_ptr(old, p, bkey_i_to_s(insert))) && in trace_io_move_fail2()
173 if (insert) { in trace_io_move_fail2()
175 bch2_bkey_val_to_text(&buf, c, bkey_i_to_s_c(insert)); in trace_io_move_fail2()
205 struct bkey_i *insert = NULL; in __bch2_data_update_index_update() local
233 insert = _insert.k; in __bch2_data_update_index_update()
239 bch2_cut_front(iter.pos, insert); in __bch2_data_update_index_update()
240 bch2_cut_back(new->k.p, insert); in __bch2_data_update_index_update()
241 bch2_cut_back(insert->k.p, &new->k_i); in __bch2_data_update_index_update()
255 (ptr = bch2_extent_has_ptr(old, p, bkey_i_to_s(insert))) && in __bch2_data_update_index_update()
258 bkey_i_to_s(insert), ptr); in __bch2_data_update_index_update()
267 trace_io_move_fail2(m, k, bkey_i_to_s_c(&new->k_i), insert, "no rewrites found:"); in __bch2_data_update_index_update()
277 if ((ptr_c = bch2_bkey_has_device_c(bkey_i_to_s_c(insert), ptr->dev)) && in __bch2_data_update_index_update()
284 trace_io_move_fail2(m, k, bkey_i_to_s_c(&new->k_i), insert, "new replicas conflicted:"); in __bch2_data_update_index_update()
290 if ((ptr = bch2_bkey_has_device(bkey_i_to_s(insert), p.ptr.dev))) in __bch2_data_update_index_update()
291 bch2_bkey_drop_ptr_noerror(bkey_i_to_s(insert), ptr); in __bch2_data_update_index_update()
293 durability = bch2_bkey_durability(c, bkey_i_to_s_c(insert)) + in __bch2_data_update_index_update()
299 bkey_for_each_ptr_decode(old.k, bch2_bkey_ptrs(bkey_i_to_s(insert)), p, entry) { in __bch2_data_update_index_update()
307 bkey_i_to_s(insert), &entry->ptr); in __bch2_data_update_index_update()
315 bch2_extent_ptr_decoded_append(insert, &p); in __bch2_data_update_index_update()
317 bch2_bkey_narrow_crcs(insert, (struct bch_extent_crc_unpacked) { 0 }); in __bch2_data_update_index_update()
318 bch2_extent_normalize_by_opts(c, &m->op.opts, bkey_i_to_s(insert)); in __bch2_data_update_index_update()
320 ret = bch2_sum_sector_overwrites(trans, &iter, insert, in __bch2_data_update_index_update()
336 next_pos = insert->k.p; in __bch2_data_update_index_update()
344 int invalid = bch2_bkey_validate(c, bkey_i_to_s_c(insert), in __bch2_data_update_index_update()
359 bch2_bkey_val_to_text(&buf, c, bkey_i_to_s_c(insert)); in __bch2_data_update_index_update()
377 bch2_bkey_val_to_text(&buf, c, bkey_i_to_s_c(insert)); in __bch2_data_update_index_update()
389 k.k->p, bkey_start_pos(&insert->k)) ?: in __bch2_data_update_index_update()
391 k.k->p, insert->k.p) ?: in __bch2_data_update_index_update()
392 bch2_bkey_set_needs_rebalance(c, &op->opts, insert) ?: in __bch2_data_update_index_update()
393 bch2_trans_update(trans, &iter, insert, in __bch2_data_update_index_update()
405 trace_io_move_finish2(m, &new->k_i, insert); in __bch2_data_update_index_update()