Lines Matching refs:update
429 void bch2_data_update_exit(struct data_update *update) in bch2_data_update_exit() argument
431 struct bch_fs *c = update->op.c; in bch2_data_update_exit()
432 struct bkey_s_c k = bkey_i_to_s_c(update->k.k); in bch2_data_update_exit()
437 bch2_bkey_buf_exit(&update->k, c); in bch2_data_update_exit()
438 bch2_disk_reservation_put(c, &update->op.res); in bch2_data_update_exit()
439 bch2_bio_free_pages_pool(c, &update->op.wbio.bio); in bch2_data_update_exit()
443 struct data_update *update) in bch2_update_unwritten_extent() argument
445 struct bch_fs *c = update->op.c; in bch2_update_unwritten_extent()
446 struct bio *bio = &update->op.wbio.bio; in bch2_update_unwritten_extent()
455 bch2_keylist_init(&update->op.insert_keys, update->op.inline_keys); in bch2_update_unwritten_extent()
462 bch2_trans_iter_init(trans, &iter, update->btree_id, update->op.pos, in bch2_update_unwritten_extent()
470 if (ret || !bch2_extents_match(k, bkey_i_to_s_c(update->k.k))) in bch2_update_unwritten_extent()
473 e = bkey_extent_init(update->op.insert_keys.top); in bch2_update_unwritten_extent()
474 e->k.p = update->op.pos; in bch2_update_unwritten_extent()
477 update->op.target, in bch2_update_unwritten_extent()
479 update->op.write_point, in bch2_update_unwritten_extent()
480 &update->op.devs_have, in bch2_update_unwritten_extent()
481 update->op.nr_replicas, in bch2_update_unwritten_extent()
482 update->op.nr_replicas, in bch2_update_unwritten_extent()
483 update->op.watermark, in bch2_update_unwritten_extent()
500 bch2_open_bucket_get(c, wp, &update->op.open_buckets); in bch2_update_unwritten_extent()
505 update->op.pos.offset += sectors; in bch2_update_unwritten_extent()
509 bch2_keylist_push(&update->op.insert_keys); in bch2_update_unwritten_extent()
511 ret = __bch2_data_update_index_update(trans, &update->op); in bch2_update_unwritten_extent()
513 bch2_open_buckets_put(c, &update->op.open_buckets); in bch2_update_unwritten_extent()