Home
last modified time | relevance | path

Searched refs:bkey_val_bytes (Results 1 – 15 of 15) sorted by relevance

/linux-6.12.1/fs/bcachefs/
Dbkey_methods.c49 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()
Dbkey_types.h22 static inline size_t bkey_val_bytes(const struct bkey *k) in bkey_val_bytes() function
Ddirent.c18 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()
Dreflink.c372 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()
Dextents.h521 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()
Dsubvolume.c240 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()
Dsnapshot.c219 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()
Dbtree_iter.h599 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()
Dbkey.h202 !memcmp(l.v, r.v, bkey_val_bytes(l.k)); in bkey_and_val_eq()
Dbtree_gc.c99 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()
Dxattr.c122 unsigned max_name_val_bytes = bkey_val_bytes(xattr.k) - in bch2_xattr_to_text()
Dbtree_write_buffer.c731 memset(&i->k.v, 0, bkey_val_bytes(&i->k.k)); in bch2_journal_keys_to_write_buffer_start()
Dfsck.c966 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()
Dalloc_background.c524 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()
Dec.c143 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()