Home
last modified time | relevance | path

Searched refs:vstruct_bytes (Results 1 – 11 of 11) sorted by relevance

/fs/bcachefs/
A Dvstructs.h26 #define vstruct_bytes(_s) \ macro
41 (round_up(vstruct_bytes(_s), 512 << (_sector_block_bits)) >> 9)
A Dsb-clean.c165 clean = kmemdup(sb_clean, vstruct_bytes(&sb_clean->field), in bch2_read_superblock_clean()
217 if (vstruct_bytes(&clean->field) < sizeof(*clean)) { in bch2_sb_clean_validate()
219 vstruct_bytes(&clean->field), sizeof(*clean)); in bch2_sb_clean_validate()
A Djournal_io.c158 size_t bytes = vstruct_bytes(j); in journal_entry_add()
213 bool identical = bytes == vstruct_bytes(&dup->j) && in journal_entry_add()
735 if (vstruct_bytes(entry) < sizeof(*u)) in journal_entry_dev_usage_to_text()
825 unsigned bytes = vstruct_bytes(entry); in journal_entry_datetime_validate()
829 if (journal_entry_err_on(vstruct_bytes(entry) < expected, in journal_entry_datetime_validate()
1004 size_t bytes = vstruct_bytes(jset); in jset_validate_early()
1111 if (vstruct_bytes(j) > buf->size) { in journal_read_bucket()
1113 vstruct_bytes(j)); in journal_read_bucket()
2033 vstruct_bytes(jset), w->sectors << 9, in bch2_journal_write_prep()
2082 unsigned bytes = vstruct_bytes(jset); in bch2_journal_write_checksum()
[all …]
A Dsuper-io.c692 memcpy(dst_f, src_f, vstruct_bytes(src_f)); in __copy_super()
749 bytes = vstruct_bytes(sb->sb); in read_one_super()
1012 roundup((size_t) vstruct_bytes(sb), in write_one_super()
1311 if (vstruct_bytes(f) < 88) { in bch2_sb_ext_validate()
1312 prt_printf(err, "field too small (%zu < %u)", vstruct_bytes(f), 88); in bch2_sb_ext_validate()
1410 prt_printf(out, " (size %zu):", vstruct_bytes(f)); in bch2_sb_field_to_text()
1502 prt_units_u64(out, vstruct_bytes(sb)); in bch2_sb_to_text()
A Dchecksum.c408 if (vstruct_bytes(&crypt->field) < sizeof(*crypt)) { in bch2_sb_crypt_validate()
410 vstruct_bytes(&crypt->field), sizeof(*crypt)); in bch2_sb_crypt_validate()
A Dsb-members.c383 if (mi_bytes > vstruct_bytes(&mi->field)) { in bch2_sb_members_v2_validate()
385 mi_bytes, vstruct_bytes(&mi->field)); in bch2_sb_members_v2_validate()
A Dchardev.c606 if (vstruct_bytes(sb) > arg.size) { in bch2_ioctl_read_super()
612 vstruct_bytes(sb)); in bch2_ioctl_read_super()
A Dbset.h264 return ((void *) i) + round_up(vstruct_bytes(i), block_bytes); in bset_next_set()
A Dquota.c27 if (vstruct_bytes(&q->field) < sizeof(*q)) { in bch2_sb_quota_validate()
29 vstruct_bytes(&q->field), sizeof(*q)); in bch2_sb_quota_validate()
A Dbcachefs_format.h1265 return (vstruct_bytes(&u->entry) - sizeof(struct jset_entry_dev_usage)) / in jset_entry_dev_usage_nr_types()
1276 unsigned b = vstruct_bytes(&l->entry) - offsetof(struct jset_entry_log, d); in jset_entry_log_msg_bytes()
A Djournal.c62 prt_human_readable_u64(out, vstruct_bytes(buf->data)); in bch2_journal_buf_to_text()
276 prt_human_readable_u64(&pbuf, vstruct_bytes(buf->data)); in __journal_entry_close()

Completed in 34 milliseconds