Home
last modified time | relevance | path

Searched refs:bkey_val_u64s (Results 1 – 14 of 14) sorted by relevance

/linux-6.12.1/fs/bcachefs/
Dbkey_types.h20 #define bkey_val_u64s(_k) ((_k)->u64s - BKEY_U64s) macro
24 return bkey_val_u64s(k) * sizeof(u64); in bkey_val_bytes()
40 #define bkey_val_end(_k) ((void *) (((u64 *) (_k).v) + bkey_val_u64s((_k).k)))
Dxattr.c81 bkey_fsck_err_on(bkey_val_u64s(k.k) < val_u64s, in bch2_xattr_validate()
84 bkey_val_u64s(k.k), val_u64s); in bch2_xattr_validate()
90 bkey_fsck_err_on(bkey_val_u64s(k.k) > val_u64s, in bch2_xattr_validate()
93 bkey_val_u64s(k.k), val_u64s); in bch2_xattr_validate()
Dextents.c176 bkey_fsck_err_on(bkey_val_u64s(k.k) > BCH_REPLICAS_MAX, in bch2_btree_ptr_validate()
178 "value too big (%zu > %u)", bkey_val_u64s(k.k), BCH_REPLICAS_MAX); in bch2_btree_ptr_validate()
197 bkey_fsck_err_on(bkey_val_u64s(k.k) > BKEY_BTREE_PTR_VAL_U64s_MAX, in bch2_btree_ptr_v2_validate()
200 bkey_val_u64s(k.k), BKEY_BTREE_PTR_VAL_U64s_MAX); in bch2_btree_ptr_v2_validate()
585 EBUG_ON(bkey_val_u64s(&k->k) > BKEY_EXTENT_VAL_U64s_MAX); in bch2_extent_crc_append()
1558 unsigned new_val_u64s = bkey_val_u64s(k.k); in bch2_cut_front_s()
1630 val_u64s_delta = bkey_val_u64s(k.k) - new_val_u64s; in bch2_cut_front_s()
1640 unsigned new_val_u64s = bkey_val_u64s(k.k); in bch2_cut_back_s()
1667 val_u64s_delta = bkey_val_u64s(k.k) - new_val_u64s; in bch2_cut_back_s()
Ddirent.c21 unsigned bkey_u64s = bkey_val_u64s(d.k); in bch2_dirent_name_bytes()
114 bkey_fsck_err_on(bkey_val_u64s(k.k) > dirent_val_u64s(d_name.len), in bch2_dirent_validate()
117 bkey_val_u64s(k.k), dirent_val_u64s(d_name.len)); in bch2_dirent_validate()
Ddisk_accounting.h16 return bkey_val_u64s(k) - offsetof(struct bch_accounting, d) / sizeof(u64); in bch2_accounting_counters()
Dbkey.c59 bkey_val_u64s(unpacked)); in bch2_bkey_pack_verify()
376 bkey_val_u64s(&src->k)); in bch2_bkey_pack()
Dalloc_background.c207 bkey_fsck_err_on(bkey_val_u64s(a.k) < bch_alloc_v1_val_u64s(a.v), in bch2_alloc_v1_validate()
210 bkey_val_u64s(a.k), bch_alloc_v1_val_u64s(a.v)); in bch2_alloc_v1_validate()
249 bkey_fsck_err_on(alloc_v4_u64s_noerror(&a) > bkey_val_u64s(k.k), in bch2_alloc_v4_validate()
252 alloc_v4_u64s_noerror(&a), bkey_val_u64s(k.k)); in bch2_alloc_v4_validate()
Dbkey.h513 memcpy_u64s_small(&dst->v, src.v, bkey_val_u64s(src.k)); in bkey_reassemble()
Dinode.c509 INODEv3_FIELDS_START(inode.v) > bkey_val_u64s(inode.k), in bch2_inode_v3_validate()
514 bkey_val_u64s(inode.k)); in bch2_inode_v3_validate()
Dextents.h635 EBUG_ON(bkey_val_u64s(&k->k) >= BKEY_EXTENT_VAL_U64s_MAX); in bch2_bkey_append_ptr()
Ddata_update.c265 if (!bkey_val_u64s(&new->k)) { in __bch2_data_update_index_update()
Dbtree_trans_commit.c162 EBUG_ON(bkey_deleted(&insert->k) && bkey_val_u64s(&insert->k)); in bch2_btree_bset_insert_key()
Dec.c122 bkey_fsck_err_on(bkey_val_u64s(k.k) < stripe_val_u64s(s), in bch2_stripe_validate()
125 bkey_val_u64s(k.k), stripe_val_u64s(s)); in bch2_stripe_validate()
Djournal_io.c1536 BUG_ON(bkey_val_u64s(&w->key.k) > BCH_REPLICAS_MAX); in journal_write_alloc()