Home
last modified time | relevance | path

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

/linux-6.12.1/fs/bcachefs/
Dsb-clean.c30 entry < (struct jset_entry *) vstruct_end(&clean->field); in bch2_sb_clean_validate_late()
32 if (vstruct_end(entry) > vstruct_end(&clean->field)) { in bch2_sb_clean_validate_late()
35 (u64 *) vstruct_end(entry) - (u64 *) vstruct_end(&clean->field)); in bch2_sb_clean_validate_late()
61 end = vstruct_end(&clean->field); in btree_root_find()
220 entry != vstruct_end(&clean->field); in bch2_sb_clean_validate()
222 if ((void *) vstruct_next(entry) > vstruct_end(&clean->field)) { in bch2_sb_clean_validate()
243 entry != vstruct_end(&clean->field); in bch2_sb_clean_to_text()
245 if ((void *) vstruct_next(entry) > vstruct_end(&clean->field)) in bch2_sb_clean_to_text()
316 BUG_ON((void *) entry > vstruct_end(&sb_clean->field)); in bch2_fs_mark_clean()
319 vstruct_end(&sb_clean->field) - (void *) entry); in bch2_fs_mark_clean()
Djournal_sb.h9 ? (__le64 *) vstruct_end(&j->field) - j->buckets in bch2_nr_journal_buckets()
18 return (struct bch_sb_field_journal_v2_entry *) vstruct_end(&j->field) - &j->d[0]; in bch2_sb_field_journal_v2_nr_entries()
Dsb-downgrade.c258 (void *) _i < vstruct_end(&(_d)->field) && \
259 (void *) &_i->errors[0] <= vstruct_end(&(_d)->field) && \
260 (void *) downgrade_entry_next_c(_i) <= vstruct_end(&(_d)->field); \
269 (void *) i < vstruct_end(&e->field); in bch2_sb_downgrade_validate()
276 if ((void *) &i->errors[0] > vstruct_end(&e->field)) in bch2_sb_downgrade_validate()
280 (void *) downgrade_entry_next_c(i) > vstruct_end(&e->field)) { in bch2_sb_downgrade_validate()
Dreplicas.h68 (void *) (_i) < vstruct_end(&(_r)->field) && (_i)->data_type;\
73 (void *) (_i) < vstruct_end(&(_r)->field) && (_i)->data_type;\
Djournal_seq_blacklist.h9 ? ((vstruct_end(&bl->field) - (void *) &bl->start[0]) / in blacklist_nr_entries()
Ddisk_groups.h12 ? (vstruct_end(&groups->field) - in disk_groups_nr()
Dvstructs.h47 #define vstruct_end(_s) \ macro
Dsb-counters.c20 return (__le64 *) vstruct_end(&ctrs->field) - &ctrs->d[0]; in bch2_sb_counter_nr_entries()
Dreplicas.c631 vstruct_end(&sb_r->field) - in bch2_cpu_replicas_to_sb_replicas_v0()
642 BUG_ON((void *) dst > vstruct_end(&sb_r->field)); in bch2_cpu_replicas_to_sb_replicas_v0()
676 vstruct_end(&sb_r->field) - in bch2_cpu_replicas_to_sb_replicas()
685 BUG_ON((void *) dst > vstruct_end(&sb_r->field)); in bch2_cpu_replicas_to_sb_replicas()
Dchecksum.h45 bch2_checksum(_c, _type, _nonce, _start, vstruct_end(_i) - _start);\
Dbtree_io.h119 vstruct_end(i) - (void *) i->_data); in bset_encrypt()
Dsuper-io.c111 src = vstruct_end(f); in __bch2_sb_field_resize()
115 dst = vstruct_end(f); in __bch2_sb_field_resize()
120 memmove(dst, src, vstruct_end(sb->sb) - src); in __bch2_sb_field_resize()
Dbtree_io.c331 BUG_ON(vstruct_end(&out->keys) > (void *) out + bytes); in btree_node_sort()
648 (u64 *) vstruct_end(i) - (u64 *) k); in bch2_btree_node_drop_keys_outside_node()
967 memmove_u64s_down(k, bkey_p_next(k), (u64 *) vstruct_end(i) - (u64 *) k); in validate_bset_keys()
1227 (u64 *) vstruct_end(i) - (u64 *) k); in bch2_btree_node_read_done()
2108 bytes_to_write = vstruct_end(i) - data; in __bch2_btree_node_write()
Dsb-members.c279 if ((void *) members_v1_get_mut(mi, sb->nr_devices) > vstruct_end(&mi->field)) { in bch2_sb_members_v1_validate()
Djournal_io.c1104 vstruct_end(j) - (void *) j->encrypted_start); in journal_read_bucket()
1917 vstruct_end(jset) - (void *) jset->encrypted_start); in bch2_journal_write_prep()
Ddebug.c72 vstruct_end(inmemory) - (void *) inmemory->start)) { in bch2_btree_verify_replica()
Drecovery.c477 entry != vstruct_end(&clean->field); in journal_replay_early()
Dbtree_update_interior.c977 unsigned bytes = vstruct_end(&b->data->keys) - (void *) b->data; in bch2_btree_update_add_new_node()