Searched refs:bkey_val_u64s (Results 1 – 14 of 14) sorted by relevance
/linux-6.12.1/fs/bcachefs/ |
D | bkey_types.h | 20 #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)))
|
D | xattr.c | 81 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()
|
D | extents.c | 176 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()
|
D | dirent.c | 21 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()
|
D | disk_accounting.h | 16 return bkey_val_u64s(k) - offsetof(struct bch_accounting, d) / sizeof(u64); in bch2_accounting_counters()
|
D | bkey.c | 59 bkey_val_u64s(unpacked)); in bch2_bkey_pack_verify() 376 bkey_val_u64s(&src->k)); in bch2_bkey_pack()
|
D | alloc_background.c | 207 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()
|
D | bkey.h | 513 memcpy_u64s_small(&dst->v, src.v, bkey_val_u64s(src.k)); in bkey_reassemble()
|
D | inode.c | 509 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()
|
D | extents.h | 635 EBUG_ON(bkey_val_u64s(&k->k) >= BKEY_EXTENT_VAL_U64s_MAX); in bch2_bkey_append_ptr()
|
D | data_update.c | 265 if (!bkey_val_u64s(&new->k)) { in __bch2_data_update_index_update()
|
D | btree_trans_commit.c | 162 EBUG_ON(bkey_deleted(&insert->k) && bkey_val_u64s(&insert->k)); in bch2_btree_bset_insert_key()
|
D | ec.c | 122 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()
|
D | journal_io.c | 1536 BUG_ON(bkey_val_u64s(&w->key.k) > BCH_REPLICAS_MAX); in journal_write_alloc()
|