Searched refs:bkey_val_bytes (Results 1 – 15 of 15) sorted by relevance
/linux-6.12.1/fs/bcachefs/ |
D | bkey_methods.c | 49 bkey_fsck_err_on(bkey_val_bytes(k.k), in empty_val_key_validate() 52 bkey_val_bytes(k.k)); in empty_val_key_validate() 135 bkey_fsck_err_on(bkey_val_bytes(k.k) < ops->min_val_size, in bch2_bkey_val_validate() 138 bkey_val_bytes(k.k), ops->min_val_size); in bch2_bkey_val_validate() 312 if (bkey_val_bytes(k.k)) { in bch2_bkey_val_to_text()
|
D | bkey_types.h | 22 static inline size_t bkey_val_bytes(const struct bkey *k) in bkey_val_bytes() function
|
D | dirent.c | 18 if (bkey_val_bytes(d.k) < offsetof(struct bch_dirent, d_name)) in bch2_dirent_name_bytes() 196 bkey_val_bytes(&dirent->k) - in dirent_create_key()
|
D | reflink.c | 372 set_bkey_val_bytes(&r_v->k, sizeof(__le64) + bkey_val_bytes(&orig->k)); in bch2_make_extent_indirect() 376 memcpy(refcount + 1, &orig->v, bkey_val_bytes(&orig->k)); in bch2_make_extent_indirect()
|
D | extents.h | 521 return bkey_val_bytes(k) - bkey_inline_data_offset(k); in bkey_inline_data_bytes() 638 dest = (struct bch_extent_ptr *)((void *) &k->v + bkey_val_bytes(&k->k)); in bch2_bkey_append_ptr()
|
D | subvolume.c | 240 if (bkey_val_bytes(s.k) > offsetof(struct bch_subvolume, creation_parent)) { in bch2_subvolume_to_text() 373 if (bkey_val_bytes(k.k) > offsetof(struct bch_subvolume, creation_parent) && in bch2_subvolume_reparent()
|
D | snapshot.c | 219 if (bkey_val_bytes(k.k) > offsetof(struct bch_snapshot, depth)) in bch2_snapshot_to_text() 264 if (bkey_val_bytes(k.k) > offsetof(struct bch_snapshot, skip)) { in bch2_snapshot_validate() 326 if (bkey_val_bytes(s.k) > offsetof(struct bch_snapshot, depth)) { in __bch2_mark_snapshot() 759 memcpy(&s, k.v, min(sizeof(s), bkey_val_bytes(k.k))); in check_snapshot()
|
D | btree_iter.h | 599 bkey_val_bytes(_src_k.k)); \ 617 unsigned b = min_t(unsigned, bkey_val_bytes(k.k), val_size); in __bch2_bkey_get_val_typed()
|
D | bkey.h | 202 !memcmp(l.v, r.v, bkey_val_bytes(l.k)); in bkey_and_val_eq()
|
D | btree_gc.c | 99 set_bkey_val_bytes(&dst->k, sizeof(dst->v) + bkey_val_bytes(&src->k)); in btree_ptr_to_v2() 100 memcpy(dst->v.start, src->v.start, bkey_val_bytes(&src->k)); in btree_ptr_to_v2()
|
D | xattr.c | 122 unsigned max_name_val_bytes = bkey_val_bytes(xattr.k) - in bch2_xattr_to_text()
|
D | btree_write_buffer.c | 731 memset(&i->k.v, 0, bkey_val_bytes(&i->k.k)); in bch2_journal_keys_to_write_buffer_start()
|
D | fsck.c | 966 if (bkey_val_bytes(k1.k) == bkey_val_bytes(k2.k) && in hash_pick_winner() 967 !memcmp(k1.v, k2.v, bkey_val_bytes(k1.k))) in hash_pick_winner()
|
D | alloc_background.c | 524 bkey_fsck_err_on(bkey_val_bytes(k.k) != sizeof(struct bch_bucket_gens), in bch2_bucket_gens_validate() 527 bkey_val_bytes(k.k), sizeof(struct bch_bucket_gens)); in bch2_bucket_gens_validate()
|
D | ec.c | 143 memcpy(&s, sp, min(sizeof(s), bkey_val_bytes(k.k))); in bch2_stripe_to_text() 175 stripe_blockcount_offset(&s, i) < bkey_val_bytes(k.k)) in bch2_stripe_to_text()
|