Home
last modified time | relevance | path

Searched refs:bkey_i_to_s (Results 1 – 20 of 20) sorted by relevance

/linux-6.12.1/fs/bcachefs/
Ddata_update.c128 (ptr = bch2_extent_has_ptr(old, p, bkey_i_to_s(insert))) && in trace_move_extent_fail2()
237 (ptr = bch2_extent_has_ptr(old, p, bkey_i_to_s(insert))) && in __bch2_data_update_index_update()
240 bkey_i_to_s(insert), ptr); in __bch2_data_update_index_update()
261 bch2_bkey_drop_ptr_noerror(bkey_i_to_s(&new->k_i), ptr); in __bch2_data_update_index_update()
272 if ((ptr = bch2_bkey_has_device(bkey_i_to_s(insert), p.ptr.dev))) in __bch2_data_update_index_update()
273 bch2_bkey_drop_ptr_noerror(bkey_i_to_s(insert), ptr); in __bch2_data_update_index_update()
281 bkey_for_each_ptr_decode(old.k, bch2_bkey_ptrs(bkey_i_to_s(insert)), p, entry) { in __bch2_data_update_index_update()
289 bkey_i_to_s(insert), &entry->ptr); in __bch2_data_update_index_update()
300 bch2_extent_normalize_by_opts(c, &m->op.opts, bkey_i_to_s(insert)); in __bch2_data_update_index_update()
578 bch2_bkey_drop_ptrs_noerror(bkey_i_to_s(n), ptr, i++ == drop); in bch2_extent_drop_ptrs()
[all …]
Dmigrate.c57 ret = drop_dev_ptrs(c, bkey_i_to_s(n), dev_idx, flags, false); in bch2_dev_usrdata_drop_key()
66 bch2_extent_normalize(c, bkey_i_to_s(n)); in bch2_dev_usrdata_drop_key()
133 ret = drop_dev_ptrs(c, bkey_i_to_s(k.k), in bch2_dev_metadata_drop()
Dextents.h89 union bch_extent_entry *end = bkey_val_end(bkey_i_to_s(k)); in __extent_entry_insert()
629 EBUG_ON(bch2_bkey_has_device(bkey_i_to_s(k), ptr.dev)); in bch2_bkey_append_ptr()
746 bch2_cut_front_s(where, bkey_i_to_s(k)); in bch2_cut_front()
751 bch2_cut_back_s(where, bkey_i_to_s(k)); in bch2_cut_back()
Dextents.c487 struct bkey_ptrs ptrs = bch2_bkey_ptrs(bkey_i_to_s(k)); in bch2_bkey_narrow_crcs()
510 ptrs = bch2_bkey_ptrs(bkey_i_to_s(k)); in bch2_bkey_narrow_crcs()
514 bch2_bkey_drop_ptr_noerror(bkey_i_to_s(k), &i->ptr); in bch2_bkey_narrow_crcs()
562 struct bkey_ptrs ptrs = bch2_bkey_ptrs(bkey_i_to_s(k)); in bch2_extent_crc_append()
727 union bch_extent_entry *end = bkey_val_end(bkey_i_to_s(k)); in bch2_bkey_extent_entry_drop()
737 struct bkey_ptrs ptrs = bch2_bkey_ptrs(bkey_i_to_s(k)); in bch2_extent_ptr_decoded_append()
754 pos = bkey_val_end(bkey_i_to_s(k)); in bch2_extent_ptr_decoded_append()
1503 struct bkey_s k = bkey_i_to_s(_k); in bch2_bkey_set_needs_rebalance()
Dbkey_methods.h101 return bch2_key_trigger(trans, btree_id, level, old, bkey_i_to_s(&deleted), in bch2_key_trigger_old()
Dbuckets.c284 bch2_bkey_drop_ptrs(bkey_i_to_s(new), ptr, !bch2_dev_exists(c, ptr->dev)); in bch2_check_fix_ptrs()
293 struct bkey_ptrs ptrs = bch2_bkey_ptrs(bkey_i_to_s(new)); in bch2_check_fix_ptrs()
308 ptrs = bch2_bkey_ptrs(bkey_i_to_s(new)); in bch2_check_fix_ptrs()
309 bkey_for_each_ptr_decode(bkey_i_to_s(new).k, ptrs, p, entry) { in bch2_check_fix_ptrs()
321 bch2_bkey_drop_ptr(bkey_i_to_s(new), &entry->ptr); in bch2_check_fix_ptrs()
327 ptrs = bch2_bkey_ptrs(bkey_i_to_s(new)); in bch2_check_fix_ptrs()
Dbtree_trans_commit.c473 old, bkey_i_to_s(new), in run_one_mem_trigger()
477 bkey_i_to_s(new), flags) ?: in run_one_mem_trigger()
507 return bch2_key_trigger(trans, i->btree_id, i->level, old, bkey_i_to_s(i->k), in run_one_trans_trigger()
515 return bch2_key_trigger_new(trans, i->btree_id, i->level, bkey_i_to_s(i->k), flags) ?: 1; in run_one_trans_trigger()
Dbkey_types.h80 static inline struct bkey_s bkey_i_to_s(struct bkey_i *k) in bkey_i_to_s() function
Dreflink.c94 refcount = bkey_refcount(bkey_i_to_s(k)); in trans_trigger_reflink_p_segment()
374 refcount = bkey_refcount(bkey_i_to_s(r_v)); in bch2_make_extent_indirect()
Dbtree_update.c49 if (!bch2_bkey_merge(c, bkey_i_to_s(update), bkey_i_to_s_c(*insert))) in extent_front_merge()
85 bch2_bkey_merge(c, bkey_i_to_s(insert), k); in extent_back_merge()
Dbkey_methods.c461 u = bkey_i_to_s(packed_to_bkey(k)); in __bch2_bkey_compat()
Drebalance.c129 extent_entry_drop(bkey_i_to_s(n), in bch2_bkey_clear_needs_rebalance()
Dbtree_update_interior.c660 ret = bch2_key_trigger_new(trans, as->btree_id, level, bkey_i_to_s(k), in btree_update_nodes_written_trans()
2344 bkey_i_to_s(new_key), in __bch2_btree_node_update_key()
2495 bch2_bkey_drop_ptrs(bkey_i_to_s(new_key), ptr, in bch2_btree_node_update_key_get_iter()
2496 !bch2_bkey_has_device(bkey_i_to_s(&b->key), ptr->dev)); in bch2_btree_node_update_key_get_iter()
Dbtree_gc.c971 *bkey_refcount(bkey_i_to_s(new)) = cpu_to_le64(r->refcount); in bch2_gc_write_reflink_key()
1206 bch2_extent_normalize(c, bkey_i_to_s(u)); in gc_btree_gens_key()
Dbtree_io.c1250 bkey_for_each_ptr(bch2_bkey_ptrs(bkey_i_to_s(&b->key)), ptr) { in bch2_btree_node_read_done()
1857 bch2_bkey_drop_ptrs(bkey_i_to_s(&wbio->key), ptr, in btree_node_write_work()
1959 bkey_for_each_ptr(bch2_bkey_ptrs(bkey_i_to_s(&tmp.k)), ptr) in btree_write_submit()
Dio_write.c489 bch2_bkey_drop_ptrs(bkey_i_to_s(src), ptr, in bch2_write_drop_io_error_ptrs()
1145 struct bkey_ptrs ptrs = bch2_bkey_ptrs(bkey_i_to_s(new)); in bch2_nocow_write_convert_one_unwritten()
Dec.c1349 bch2_bkey_drop_ptrs_noerror(bkey_i_to_s(n), ptr, ptr->dev != dev); in ec_stripe_update_extent()
1350 ec_ptr = bch2_bkey_has_device(bkey_i_to_s(n), dev); in ec_stripe_update_extent()
2278 struct bkey_ptrs ptrs = bch2_bkey_ptrs(bkey_i_to_s(&s->k_i)); in bch2_invalidate_stripe_to_dev()
Dbackpointers.c455 bch2_bkey_drop_device(bkey_i_to_s(n), dev); in drop_dev_and_update()
Dinode.c713 bkey_inode_flags_set(bkey_i_to_s(update), f ^ BCH_INODE_has_child_snapshot); in update_parent_inode_has_children()
Dsnapshot.c954 bkey_s_c_null, bkey_i_to_s(&snapshot->k_i), 0) ?: in check_snapshot_exists()