Searched refs:vstruct_end (Results 1 – 18 of 18) sorted by relevance
30 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()
9 ? (__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()
258 (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()
68 (void *) (_i) < vstruct_end(&(_r)->field) && (_i)->data_type;\73 (void *) (_i) < vstruct_end(&(_r)->field) && (_i)->data_type;\
9 ? ((vstruct_end(&bl->field) - (void *) &bl->start[0]) / in blacklist_nr_entries()
12 ? (vstruct_end(&groups->field) - in disk_groups_nr()
47 #define vstruct_end(_s) \ macro
20 return (__le64 *) vstruct_end(&ctrs->field) - &ctrs->d[0]; in bch2_sb_counter_nr_entries()
631 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()
45 bch2_checksum(_c, _type, _nonce, _start, vstruct_end(_i) - _start);\
119 vstruct_end(i) - (void *) i->_data); in bset_encrypt()
111 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()
331 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()
279 if ((void *) members_v1_get_mut(mi, sb->nr_devices) > vstruct_end(&mi->field)) { in bch2_sb_members_v1_validate()
1104 vstruct_end(j) - (void *) j->encrypted_start); in journal_read_bucket()1917 vstruct_end(jset) - (void *) jset->encrypted_start); in bch2_journal_write_prep()
72 vstruct_end(inmemory) - (void *) inmemory->start)) { in bch2_btree_verify_replica()
477 entry != vstruct_end(&clean->field); in journal_replay_early()
977 unsigned bytes = vstruct_end(&b->data->keys) - (void *) b->data; in bch2_btree_update_add_new_node()