Home
last modified time | relevance | path

Searched refs:u64s (Results 1 – 25 of 48) sorted by relevance

12

/linux/fs/bcachefs/
A Djournal.h186 entry->u64s = cpu_to_le16(u64s); in bch2_journal_add_entry_noreservation()
188 le32_add_cpu(&jset->u64s, jset_u64s(u64s)); in bch2_journal_add_entry_noreservation()
201 unsigned u64s) in journal_entry_init() argument
203 entry->u64s = cpu_to_le16(u64s); in journal_entry_init()
210 return jset_u64s(u64s); in journal_entry_init()
226 unsigned level, unsigned u64s) in bch2_journal_add_entry() argument
232 EBUG_ON(actual > res->u64s); in bch2_journal_add_entry()
235 res->u64s -= actual; in bch2_journal_add_entry()
303 while (res->u64s) in bch2_journal_res_put()
347 new.cur_entry_offset += res->u64s; in journal_res_get_fast()
[all …]
A Dutil.h387 unsigned u64s) in memcpy_u64s_small() argument
392 while (u64s--) in memcpy_u64s_small()
397 unsigned u64s) in __memcpy_u64s() argument
410 while (u64s--) in __memcpy_u64s()
431 unsigned u64s) in memmove_u64s_down() argument
453 unsigned u64s) in __memmove_u64s_up_small() argument
458 while (u64s--) in __memmove_u64s_up_small()
463 unsigned u64s) in memmove_u64s_up_small() argument
486 while (u64s--) in __memmove_u64s_up()
492 unsigned u64s) in memmove_u64s_up() argument
[all …]
A Dvstructs.h13 ( type_is((_s)->u64s, u64) ? le64_to_cpu((__force __le64) (_s)->u64s) \
14 : type_is((_s)->u64s, u32) ? le32_to_cpu((__force __le32) (_s)->u64s) \
15 : type_is((_s)->u64s, u16) ? le16_to_cpu((__force __le16) (_s)->u64s) \
16 : ((__force u8) ((_s)->u64s))); \
A Dbkey_buf.h14 struct bch_fs *c, unsigned u64s) in bch2_bkey_buf_realloc() argument
17 u64s > ARRAY_SIZE(s->onstack)) { in bch2_bkey_buf_realloc()
27 bch2_bkey_buf_realloc(s, c, k.k->u64s); in bch2_bkey_buf_reassemble()
35 bch2_bkey_buf_realloc(s, c, src->k.u64s); in bch2_bkey_buf_copy()
A Dbtree_trans_commit.c189 clobber_u64s = k->u64s; in bch2_btree_bset_insert_key()
208 clobber_u64s = k->u64s; in bch2_btree_bset_insert_key()
218 new_u64s = k->u64s; in bch2_btree_bset_insert_key()
411 ck->u64s = new_u64s; in btree_key_can_insert_cached_slowpath()
436 u64s += 1; in btree_key_can_insert_cached()
438 if (u64s <= ck->u64s) in btree_key_can_insert_cached()
450 ck->u64s = new_u64s; in btree_key_can_insert_cached()
627 unsigned u64s = 0; in bch2_trans_commit_write_locked() local
649 u64s = 0; in bch2_trans_commit_write_locked()
651 u64s += i->k->k.u64s; in bch2_trans_commit_write_locked()
[all …]
A Dsuper-io.c94 unsigned u64s) in __bch2_sb_field_resize() argument
97 unsigned sb_u64s = le32_to_cpu(sb->sb->u64s) + u64s - old_u64s; in __bch2_sb_field_resize()
101 if (!f && !u64s) { in __bch2_sb_field_resize()
106 f->u64s = cpu_to_le32(u64s); in __bch2_sb_field_resize()
113 if (u64s) { in __bch2_sb_field_resize()
114 f->u64s = cpu_to_le32(u64s); in __bch2_sb_field_resize()
128 return u64s ? f : NULL; in __bch2_sb_field_resize()
215 unsigned u64s) in bch2_sb_field_resize_id() argument
250 unsigned u64s) in bch2_sb_field_get_minsize_id() argument
254 if (!f || le32_to_cpu(f->u64s) < u64s) in bch2_sb_field_get_minsize_id()
[all …]
A Djournal_io.h80 unsigned u64s = DIV_ROUND_UP(size, sizeof(u64)); in jset_entry_init() local
82 memset(entry, 0, u64s * sizeof(u64)); in jset_entry_init()
87 entry->u64s = cpu_to_le16(u64s - 1); in jset_entry_init()
A Dsb-clean.c34 le16_to_cpu(entry->u64s), le32_to_cpu(clean->field.u64s), in bch2_sb_clean_validate_late()
74 if (!entry->u64s) in btree_root_find()
128 k1->k.u64s != k2->k.u64s || in bch2_verify_superblock_clean()
249 !entry->u64s) in bch2_sb_clean_to_text()
285 unsigned u64s; in bch2_fs_mark_clean() local
299 u64s = sizeof(*sb_clean) / sizeof(u64) + c->journal.entry_u64s_reserved; in bch2_fs_mark_clean()
301 sb_clean = bch2_sb_field_resize(&c->disk_sb, clean, u64s); in bch2_fs_mark_clean()
A Dbkey_types.h17 return (struct bkey_i *) ((u64 *) k->_data + k->k.u64s); in bkey_next()
20 #define bkey_val_u64s(_k) ((_k)->u64s - BKEY_U64s)
29 unsigned u64s = BKEY_U64s + val_u64s; in set_bkey_val_u64s() local
31 BUG_ON(u64s > U8_MAX); in set_bkey_val_u64s()
32 k->u64s = u64s; in set_bkey_val_u64s()
A Dbtree_io.c313 u64s += le16_to_cpu(bset(b, t)->u64s); in btree_node_sort()
329 out->keys.u64s = cpu_to_le16(u64s); in btree_node_sort()
343 u64s = le16_to_cpu(out->keys.u64s); in btree_node_sort()
353 out->keys.u64s = cpu_to_le16(u64s); in btree_node_sort()
357 start_bset->u64s = out->keys.u64s; in btree_node_sort()
649 i->u64s = cpu_to_le16(le16_to_cpu(i->u64s) - shift); in bch2_btree_node_drop_keys_outside_node()
1199 u64s = le16_to_cpu(sorted->keys.u64s); in bch2_btree_node_read_done()
1201 sorted->keys.u64s = cpu_to_le16(u64s); in bch2_btree_node_read_done()
1225 i->u64s = cpu_to_le16(le16_to_cpu(i->u64s) - k->u64s); in bch2_btree_node_read_done()
2096 le16_add_cpu(&i->u64s, u64s); in __bch2_btree_node_write()
[all …]
A Dbtree_update.h118 bch2_trans_jset_entry_alloc(struct btree_trans *trans, unsigned u64s) in bch2_trans_jset_entry_alloc() argument
121 trans->journal_entries_u64s + u64s > trans->journal_entries_size) in bch2_trans_jset_entry_alloc()
122 return __bch2_trans_jset_entry_alloc(trans, u64s); in bch2_trans_jset_entry_alloc()
125 trans->journal_entries_u64s += u64s; in bch2_trans_jset_entry_alloc()
150 struct jset_entry *e = bch2_trans_jset_entry_alloc(trans, jset_u64s(k->k.u64s)); in bch2_trans_update_buffered()
155 journal_entry_init(e, BCH_JSET_ENTRY_write_buffer_keys, btree, 0, k->k.u64s); in bch2_trans_update_buffered()
231 mut->k.u64s = DIV_ROUND_UP(bytes, sizeof(u64)); in __bch2_bkey_make_mut_noupdate()
A Djournal_io.c289 le32_to_cpu(jset->u64s)); in journal_entry_err_msg()
337 if (journal_entry_err_on(!k->k.u64s, in journal_validate_key()
360 le16_add_cpu(&entry->u64s, -((u16) k->k.u64s)); in journal_validate_key()
373 le16_add_cpu(&entry->u64s, -((u16) k->k.u64s)); in journal_validate_key()
440 le16_to_cpu(entry->u64s) != k->k.u64s, in journal_entry_btree_root_validate()
450 entry->u64s = 0; in journal_entry_btree_root_validate()
960 le32_add_cpu(&jset->u64s, in jset_validate_early()
1801 unsigned sectors, bytes, u64s; in bch2_journal_write_prep() local
1816 unsigned u64s = le16_to_cpu(i->u64s); in bch2_journal_write_prep() local
1819 if (!u64s) in bch2_journal_write_prep()
[all …]
A Dbkey.c61 BUG_ON(packed->u64s < bkeyp_key_u64s(format, packed)); in bch2_bkey_pack_verify()
242 EBUG_ON(in->u64s - in_f->key_u64s + out_f->key_u64s > U8_MAX); in bch2_bkey_transform_key()
245 out->u64s = out_f->key_u64s + in->u64s - in_f->key_u64s; in bch2_bkey_transform_key()
262 (in->u64s - in_f->key_u64s)); in bch2_bkey_transform()
273 EBUG_ON(in->u64s < format->key_u64s); in __bch2_bkey_unpack_key()
275 EBUG_ON(in->u64s - format->key_u64s + BKEY_U64s > U8_MAX); in __bch2_bkey_unpack_key()
277 out.u64s = BKEY_U64s + in->u64s - format->key_u64s; in __bch2_bkey_unpack_key()
298 EBUG_ON(in->u64s < format->key_u64s); in __bkey_unpack_pos()
333 out->u64s = format->key_u64s + in->u64s - BKEY_U64s; in bch2_bkey_pack_key()
526 out->u64s = f->key_u64s; in bch2_bkey_pack_pos_lossy()
A Dacl.c204 unsigned nr_short = 0, nr_long = 0, acl_len, u64s; in bch2_acl_to_xattr() local
224 u64s = BKEY_U64s + xattr_val_u64s(0, acl_len); in bch2_acl_to_xattr()
226 if (u64s > U8_MAX) in bch2_acl_to_xattr()
229 xattr = bch2_trans_kmalloc(trans, u64s * sizeof(u64)); in bch2_acl_to_xattr()
234 xattr->k.u64s = u64s; in bch2_acl_to_xattr()
A Dbtree_update.c441 i->old_btree_u64s = !bkey_deleted(&i->old_k) ? i->old_k.u64s : 0; in bch2_trans_update_by_path()
562 struct jset_entry *__bch2_trans_jset_entry_alloc(struct btree_trans *trans, unsigned u64s) in __bch2_trans_jset_entry_alloc() argument
564 unsigned new_top = trans->journal_entries_u64s + u64s; in __bch2_trans_jset_entry_alloc()
832 struct jset_entry *e = bch2_trans_jset_entry_alloc(trans, jset_u64s(u64s)); in __bch2_trans_log_msg()
838 journal_entry_init(e, BCH_JSET_ENTRY_log, 0, 1, u64s); in __bch2_trans_log_msg()
851 unsigned u64s = DIV_ROUND_UP(buf.pos, sizeof(u64)); in __bch2_fs_log_msg() local
852 prt_chars(&buf, '\0', u64s * sizeof(u64) - buf.pos); in __bch2_fs_log_msg()
859 ret = darray_make_room(&c->journal.early_journal_entries, jset_u64s(u64s)); in __bch2_fs_log_msg()
864 journal_entry_init(&l->entry, BCH_JSET_ENTRY_log, 0, 1, u64s); in __bch2_fs_log_msg()
866 c->journal.early_journal_entries.nr += jset_u64s(u64s); in __bch2_fs_log_msg()
[all …]
A Dbcachefs_format.h201 __u8 u64s; member
265 __u8 u64s; member
346 .u64s = BKEY_U64s, \
353 .u64s = BKEY_U64s, \
475 __le32 u64s; member
603 __le16 u64s; member
743 __le32 u64s; member
1247 __le32 u64s; /* size of d[] in u64s */ member
1394 __le16 u64s; /* count of d[] in u64s */ member
1426 __le16 u64s; member
[all …]
A Dbtree_update_interior.c937 insert, insert->k.u64s); in btree_update_updated_root()
1474 u64s = 0; in __btree_split_node()
1482 u64s < n1_u64s && in __btree_split_node()
1483 u64s + k->u64s >= n1_u64s && in __btree_split_node()
1486 n1_u64s += k->u64s; in __btree_split_node()
1488 i = u64s >= n1_u64s; in __btree_split_node()
1489 u64s += k->u64s; in __btree_split_node()
1517 u64s = 0; in __btree_split_node()
1522 i = u64s >= n1_u64s; in __btree_split_node()
1523 u64s += k->u64s; in __btree_split_node()
[all …]
A Dbset.c63 if (!i->u64s) in bch2_dump_bset()
71 if (!_k->u64s) { in bch2_dump_bset()
997 if (src->u64s != clobber_u64s) { in bch2_bset_insert()
999 u64 *dst_p = (u64 *) where->_data + src->u64s; in bch2_bset_insert()
1001 EBUG_ON((int) le16_to_cpu(bset(b, t)->u64s) < in bch2_bset_insert()
1002 (int) clobber_u64s - src->u64s); in bch2_bset_insert()
1005 le16_add_cpu(&bset(b, t)->u64s, src->u64s - clobber_u64s); in bch2_bset_insert()
1014 if (src->u64s != clobber_u64s) in bch2_bset_insert()
1030 EBUG_ON(le16_to_cpu(bset(b, t)->u64s) < clobber_u64s); in bch2_bset_delete()
1033 le16_add_cpu(&bset(b, t)->u64s, -clobber_u64s); in bch2_bset_delete()
[all …]
A Dbtree_update_interior.h313 b->whiteout_u64s += k.u64s; in push_whiteout()
321 static inline bool bch2_btree_node_insert_fits(struct btree *b, unsigned u64s) in bch2_btree_node_insert_fits() argument
326 return u64s <= bch2_btree_keys_u64s_remaining(b); in bch2_btree_node_insert_fits()
A Djournal.c255 buf->data->u64s = cpu_to_le32(old.cur_entry_offset); in __journal_entry_close()
355 int u64s; in journal_entry_open() local
388 u64s = (int) (buf->sectors << 9) / sizeof(u64) - in journal_entry_open()
390 u64s = clamp_t(int, u64s, 0, JOURNAL_ENTRY_CLOSED_VAL - 1); in journal_entry_open()
392 if (u64s <= (ssize_t) j->early_journal_entries.nr) in journal_entry_open()
421 buf->data->u64s = 0; in journal_entry_open()
426 le32_add_cpu(&buf->data->u64s, j->early_journal_entries.nr); in journal_entry_open()
432 j->cur_entry_u64s = u64s; in journal_entry_open()
447 new.cur_entry_offset = le32_to_cpu(buf->data->u64s); in journal_entry_open()
632 int d = new_u64s - res->u64s; in bch2_journal_entry_res_resize()
[all …]
A Dbtree_key_cache.c109 ck->u64s = 0; in bkey_cached_free()
131 ck->u64s = key_u64s; in __bkey_cached_alloc()
210 unsigned key_u64s = k.k->u64s + 1; in btree_key_cache_create()
240 if (unlikely(key_u64s > ck->u64s)) { in btree_key_cache_create()
256 ck->u64s = key_u64s; in btree_key_cache_create()
531 BUG_ON(insert->k.u64s > ck->u64s); in bch2_btree_insert_key_cached()
A Dbkey.h47 memcpy_u64s_small(dst, src, src->u64s); in bkey_p_copy()
52 memcpy_u64s_small(dst, src, src->k.u64s); in bkey_copy()
328 return ((unsigned) k->u64s - bkeyp_key_u64s(f, k) <= U8_MAX - BKEY_U64s); in bkeyp_u64s_valid()
340 return k->u64s - bkeyp_key_u64s(format, k); in bkeyp_val_u64s()
352 k->u64s = bkeyp_key_u64s(format, k) + val_u64s; in set_bkeyp_val_u64s()
A Djournal_types.h80 u16 u64s; member
342 unsigned u64s; member
A Dsb-members.c77 unsigned u64s = DIV_ROUND_UP((sizeof(*mi) + sizeof(mi->_members[0]) * in sb_members_v2_resize_entries() local
80 mi = bch2_sb_field_resize(&c->disk_sb, members_v2, u64s); in sb_members_v2_resize_entries()
491 unsigned u64s; in bch2_sb_member_alloc() local
523 u64s = DIV_ROUND_UP(sizeof(struct bch_sb_field_members_v2) + in bch2_sb_member_alloc()
526 mi = bch2_sb_field_resize(&c->disk_sb, members_v2, u64s); in bch2_sb_member_alloc()
A Ddirent.c171 unsigned u64s = BKEY_U64s + dirent_val_u64s(name->len); in dirent_create_key() local
176 BUG_ON(u64s > U8_MAX); in dirent_create_key()
178 dirent = bch2_trans_kmalloc(trans, u64s * sizeof(u64)); in dirent_create_key()
183 dirent->k.u64s = u64s; in dirent_create_key()

Completed in 66 milliseconds

12