Home
last modified time | relevance | path

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

/linux-6.12.1/fs/bcachefs/
Dextents.h24 (const struct bch_extent_ptr *) (_entry), \
25 (struct bch_extent_ptr *) (_entry)); \
32 !type_is(_entry, struct bch_extent_ptr *) && \
37 type_is_exact(_entry, const struct bch_extent_ptr *) ||\
614 const struct bch_extent_ptr *bch2_bkey_has_device_c(struct bkey_s_c, unsigned);
616 static inline struct bch_extent_ptr *bch2_bkey_has_device(struct bkey_s k, unsigned dev) in bch2_bkey_has_device()
625 static inline void bch2_bkey_append_ptr(struct bkey_i *k, struct bch_extent_ptr ptr) in bch2_bkey_append_ptr()
627 struct bch_extent_ptr *dest; in bch2_bkey_append_ptr()
638 dest = (struct bch_extent_ptr *)((void *) &k->v + bkey_val_bytes(&k->k)); in bch2_bkey_append_ptr()
649 void bch2_bkey_drop_ptr_noerror(struct bkey_s, struct bch_extent_ptr *);
[all …]
Dextents_format.h170 struct bch_extent_ptr { struct
239 struct bch_extent_ptr start[];
251 struct bch_extent_ptr start[];
266 sizeof(struct bch_extent_ptr)) / sizeof(__u64))
278 sizeof(struct bch_extent_ptr) * BCH_REPLICAS_MAX) / sizeof(__u64))
Dbuckets.h121 const struct bch_extent_ptr *ptr) in PTR_BUCKET_NR()
127 const struct bch_extent_ptr *ptr) in PTR_BUCKET_POS()
133 const struct bch_extent_ptr *ptr, in PTR_BUCKET_POS_OFFSET()
140 const struct bch_extent_ptr *ptr) in PTR_GC_BUCKET()
146 const struct bch_extent_ptr *ptr) in ptr_data_type()
176 static inline int dev_ptr_stale_rcu(struct bch_dev *ca, const struct bch_extent_ptr *ptr) in dev_ptr_stale_rcu()
186 static inline int dev_ptr_stale(struct bch_dev *ca, const struct bch_extent_ptr *ptr) in dev_ptr_stale()
275 struct bkey_s_c, const struct bch_extent_ptr *,
Dec.h40 sizeof(struct bch_extent_ptr) * s->nr_blocks + in stripe_csum_offset()
96 static inline bool __bch2_ptr_matches_stripe(const struct bch_extent_ptr *stripe_ptr, in __bch2_ptr_matches_stripe()
97 const struct bch_extent_ptr *data_ptr, in __bch2_ptr_matches_stripe()
Dec_format.h23 struct bch_extent_ptr ptrs[];
Dbtree_node_scan_types.h21 struct bch_extent_ptr ptrs[BCH_REPLICAS_MAX];
Dextents_types.h26 struct bch_extent_ptr ptr;
Dec_types.h30 struct bch_extent_ptr ptrs[BCH_BKEY_PTRS_MAX];
Dalloc_foreground.h175 struct bch_extent_ptr bch2_ob_ptr(struct bch_fs *, struct open_bucket *);
195 struct bch_extent_ptr ptr = bch2_ob_ptr(c, ob); in bch2_alloc_sectors_append_ptrs_inlined()
Dextents.c781 void bch2_bkey_drop_ptr_noerror(struct bkey_s k, struct bch_extent_ptr *ptr) in bch2_bkey_drop_ptr_noerror()
819 void bch2_bkey_drop_ptr(struct bkey_s k, struct bch_extent_ptr *ptr) in bch2_bkey_drop_ptr()
863 const struct bch_extent_ptr *bch2_bkey_has_device_c(struct bkey_s_c k, unsigned dev) in bch2_bkey_has_device_c()
895 struct bch_extent_ptr m, u64 offset) in bch2_bkey_matches_ptr()
964 struct bch_extent_ptr *
982 struct bch_extent_ptr *ptr) in want_cached_ptr()
996 struct bch_extent_ptr *ptr) in bch2_extent_ptr_set_cached()
1080 void bch2_extent_ptr_to_text(struct printbuf *out, struct bch_fs *c, const struct bch_extent_ptr *p… in bch2_extent_ptr_to_text()
1182 const struct bch_extent_ptr *ptr, in extent_ptr_validate()
Dec.c165 const struct bch_extent_ptr *ptr = sp->ptrs + i; in bch2_stripe_to_text()
190 const struct bch_extent_ptr *ptr = s.v->ptrs + ptr_idx; in __mark_stripe_bucket()
286 const struct bch_extent_ptr *ptr = s.v->ptrs + ptr_idx; in mark_stripe_bucket()
412 new_s->nr_blocks * sizeof(struct bch_extent_ptr))) in bch2_trigger_stripe()
512 static const struct bch_extent_ptr *bkey_matches_stripe(struct bch_stripe *s, in bkey_matches_stripe()
726 struct bch_extent_ptr *ptr = &v->ptrs[ec_bio->idx]; in ec_block_endio()
758 struct bch_extent_ptr *ptr = &v->ptrs[idx]; in ec_block_io()
1285 const struct bch_extent_ptr *ptr_c; in ec_stripe_update_extent()
1286 struct bch_extent_ptr *ec_ptr = NULL; in ec_stripe_update_extent()
1375 struct bch_extent_ptr ptr = v->ptrs[block]; in ec_stripe_update_bucket()
Ddata_update.c114 struct bch_extent_ptr *ptr; in trace_move_extent_fail2()
192 struct bch_extent_ptr *ptr; in __bch2_data_update_index_update()
193 const struct bch_extent_ptr *ptr_c; in __bch2_data_update_index_update()
Dbackpointers.h122 const struct bch_extent_ptr *ptr = &entry->ptr; in bch2_bkey_ptr_data_type()
Dbtree_node_scan.c65 memcpy(bp->v.start, f->ptrs, sizeof(struct bch_extent_ptr) * f->nr_ptrs); in found_btree_node_to_key()
Dalloc_foreground.c1520 struct bch_extent_ptr bch2_ob_ptr(struct bch_fs *c, struct open_bucket *ob) in bch2_ob_ptr()
1524 return (struct bch_extent_ptr) { in bch2_ob_ptr()
Dreplicas.c164 const struct bch_extent_ptr *ptr; in stripe_to_replicas()
Dbcachefs_format.h1419 struct bch_extent_ptr _ptr; /* not used anymore */
Dio_read.c795 struct bch_extent_ptr ptr) in read_from_stale_dirty_pointer()
Dbuckets.c390 const struct bch_extent_ptr *ptr, in bch2_bucket_ref_update()
Djournal_io.c1450 (struct bch_extent_ptr) { in __journal_write_alloc()