Home
last modified time | relevance | path

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

/linux/fs/bcachefs/
H A 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 …]
H A 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()
H A 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()
1500 struct bkey_s k = bkey_i_to_s(_k); in bch2_bkey_set_needs_rebalance()
H A Dbkey_methods.h101 return bch2_key_trigger(trans, btree_id, level, old, bkey_i_to_s(&deleted), in bch2_key_trigger_old()
H A 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()
H A 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()
H A Dbkey_types.h80 static inline struct bkey_s bkey_i_to_s(struct bkey_i *k) in bkey_i_to_s() function
H A 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()
H A 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()
H A Dbkey_methods.c461 u = bkey_i_to_s(packed_to_bkey(k)); in __bch2_bkey_compat()
H A Drebalance.c129 extent_entry_drop(bkey_i_to_s(n), in bch2_bkey_clear_needs_rebalance()
H A 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()
H A Dbtree_io.c1254 bkey_for_each_ptr(bch2_bkey_ptrs(bkey_i_to_s(&b->key)), ptr) { in bch2_btree_node_read_done()
1861 bch2_bkey_drop_ptrs(bkey_i_to_s(&wbio->key), ptr, in btree_node_write_work()
1963 bkey_for_each_ptr(bch2_bkey_ptrs(bkey_i_to_s(&tmp.k)), ptr) in btree_write_submit()
H A 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()
H A Dbackpointers.c450 bch2_bkey_drop_device(bkey_i_to_s(n), dev); in drop_dev_and_update()
H A Dinode.c713 bkey_inode_flags_set(bkey_i_to_s(update), f ^ BCH_INODE_has_child_snapshot); in update_parent_inode_has_children()
H A Dsnapshot.c954 bkey_s_c_null, bkey_i_to_s(&snapshot->k_i), 0) ?: in check_snapshot_exists()