Searched refs:bkey_bytes (Results 1 – 18 of 18) sorted by relevance
/linux-6.12.1/fs/bcachefs/ |
D | btree_update.h | 217 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()
|
D | bkey.h | 201 bkey_bytes(l.k) == bkey_bytes(r.k) && in bkey_and_val_eq()
|
D | dirent.c | 22 unsigned bkey_bytes = bkey_u64s * sizeof(u64); in bch2_dirent_name_bytes() local 30 return bkey_bytes - in bch2_dirent_name_bytes()
|
D | sb-clean.c | 129 memcmp(k1, k2, bkey_bytes(&k1->k)) || in bch2_verify_superblock_clean()
|
D | reflink.c | 361 r_v = bch2_trans_kmalloc(trans, sizeof(__le64) + bkey_bytes(&orig->k)); in bch2_make_extent_indirect()
|
D | btree_journal_iter.c | 255 n = kmalloc(bkey_bytes(&k->k), GFP_KERNEL); in bch2_journal_key_insert()
|
D | btree_update.c | 553 struct bkey_i *n = bch2_trans_kmalloc(trans, bkey_bytes(&k->k)); in bch2_btree_insert_clone_trans()
|
D | bcachefs_format.h | 364 #define bkey_bytes(_k) ((_k)->u64s * sizeof(__u64)) macro
|
D | disk_accounting.c | 454 out_buf->nr += bkey_bytes(&a_out->k); in bch2_fs_accounting_read()
|
D | io_read.c | 542 new = bch2_trans_kmalloc(trans, bkey_bytes(k.k) + in __bch2_rbio_narrow_crcs()
|
D | btree_gc.c | 1060 new = bch2_trans_kmalloc(trans, bkey_bytes(k.k)); in bch2_gc_write_stripes_key()
|
D | fsck.c | 1029 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()
|
D | io_write.c | 228 struct bkey_i *k_mut = bch2_trans_kmalloc_nomemzero(trans, bkey_bytes(k.k) + 8); in bch2_extent_update_i_size_sectors()
|
D | alloc_background.c | 417 ret = bch2_trans_kmalloc(trans, max(bkey_bytes(k.k), sizeof(struct bkey_i_alloc_v4))); in __bch2_alloc_to_v4_mut()
|
D | ec.c | 1342 n = bch2_trans_kmalloc(trans, bkey_bytes(k.k) + sizeof(stripe_ptr)); in ec_stripe_update_extent()
|
/linux-6.12.1/drivers/md/bcache/ |
D | bcache_ondisk.h | 104 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), \
|
D | sysfs.c | 677 bytes += bkey_bytes(k); in bch_root_usage()
|
D | request.c | 158 memmove(dst, src, bkey_bytes(src)); in CLOSURE_CALLBACK()
|