Home
last modified time | relevance | path

Searched refs:bkey_bytes (Results 1 – 18 of 18) sorted by relevance

/linux-6.12.1/fs/bcachefs/
Dbtree_update.h217 unsigned bytes = max_t(unsigned, min_bytes, bkey_bytes(k.k)); in __bch2_bkey_make_mut_noupdate()
228 if (unlikely(bytes > bkey_bytes(k.k))) { in __bch2_bkey_make_mut_noupdate()
229 memset((void *) mut + bkey_bytes(k.k), 0, in __bch2_bkey_make_mut_noupdate()
230 bytes - bkey_bytes(k.k)); in __bch2_bkey_make_mut_noupdate()
Dbkey.h201 bkey_bytes(l.k) == bkey_bytes(r.k) && in bkey_and_val_eq()
Ddirent.c22 unsigned bkey_bytes = bkey_u64s * sizeof(u64); in bch2_dirent_name_bytes() local
30 return bkey_bytes - in bch2_dirent_name_bytes()
Dsb-clean.c129 memcmp(k1, k2, bkey_bytes(&k1->k)) || in bch2_verify_superblock_clean()
Dreflink.c361 r_v = bch2_trans_kmalloc(trans, sizeof(__le64) + bkey_bytes(&orig->k)); in bch2_make_extent_indirect()
Dbtree_journal_iter.c255 n = kmalloc(bkey_bytes(&k->k), GFP_KERNEL); in bch2_journal_key_insert()
Dbtree_update.c553 struct bkey_i *n = bch2_trans_kmalloc(trans, bkey_bytes(&k->k)); in bch2_btree_insert_clone_trans()
Dbcachefs_format.h364 #define bkey_bytes(_k) ((_k)->u64s * sizeof(__u64)) macro
Ddisk_accounting.c454 out_buf->nr += bkey_bytes(&a_out->k); in bch2_fs_accounting_read()
Dio_read.c542 new = bch2_trans_kmalloc(trans, bkey_bytes(k.k) + in __bch2_rbio_narrow_crcs()
Dbtree_gc.c1060 new = bch2_trans_kmalloc(trans, bkey_bytes(k.k)); in bch2_gc_write_stripes_key()
Dfsck.c1029 struct bkey_i_dirent *new = bch2_trans_kmalloc(trans, bkey_bytes(old.k) + 32); in fsck_rename_dirent()
2255 n = bch2_trans_kmalloc(trans, bkey_bytes(d.k)); in check_dirent_target()
Dio_write.c228 struct bkey_i *k_mut = bch2_trans_kmalloc_nomemzero(trans, bkey_bytes(k.k) + 8); in bch2_extent_update_i_size_sectors()
Dalloc_background.c417 ret = bch2_trans_kmalloc(trans, max(bkey_bytes(k.k), sizeof(struct bkey_i_alloc_v4))); in __bch2_alloc_to_v4_mut()
Dec.c1342 n = bch2_trans_kmalloc(trans, bkey_bytes(k.k) + sizeof(stripe_ptr)); in ec_stripe_update_extent()
/linux-6.12.1/drivers/md/bcache/
Dbcache_ondisk.h104 static inline unsigned long bkey_bytes(const struct bkey *k) in bkey_bytes() function
109 #define bkey_copy(_dest, _src) unsafe_memcpy(_dest, _src, bkey_bytes(_src), \
Dsysfs.c677 bytes += bkey_bytes(k); in bch_root_usage()
Drequest.c158 memmove(dst, src, bkey_bytes(src)); in CLOSURE_CALLBACK()