Home
last modified time | relevance | path

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

/linux-6.12.1/fs/bcachefs/
Dvstructs.h26 #define vstruct_bytes(_s) \ macro
41 (round_up(vstruct_bytes(_s), 512 << (_sector_block_bits)) >> 9)
Dsb-clean.c161 clean = kmemdup(sb_clean, vstruct_bytes(&sb_clean->field), in bch2_read_superblock_clean()
213 if (vstruct_bytes(&clean->field) < sizeof(*clean)) { in bch2_sb_clean_validate()
215 vstruct_bytes(&clean->field), sizeof(*clean)); in bch2_sb_clean_validate()
Djournal_io.c143 size_t bytes = vstruct_bytes(j); in journal_entry_add()
195 bool identical = bytes == vstruct_bytes(&dup->j) && in journal_entry_add()
711 if (vstruct_bytes(entry) < sizeof(*u)) in journal_entry_dev_usage_to_text()
741 unsigned bytes = vstruct_bytes(entry) - offsetof(struct jset_entry_log, d); in journal_entry_log_to_text()
784 unsigned bytes = vstruct_bytes(entry); in journal_entry_datetime_validate()
788 if (journal_entry_err_on(vstruct_bytes(entry) < expected, in journal_entry_datetime_validate()
929 size_t bytes = vstruct_bytes(jset); in jset_validate_early()
1051 if (vstruct_bytes(j) > buf->size) { in journal_read_bucket()
1053 vstruct_bytes(j)); in journal_read_bucket()
1887 bytes = vstruct_bytes(jset); in bch2_journal_write_prep()
[all …]
Dsuper-io.c605 memcpy(dst_f, src_f, vstruct_bytes(src_f)); in __copy_super()
662 bytes = vstruct_bytes(sb->sb); in read_one_super()
923 roundup((size_t) vstruct_bytes(sb), in write_one_super()
1175 if (vstruct_bytes(f) < 88) { in bch2_sb_ext_validate()
1176 prt_printf(err, "field too small (%zu < %u)", vstruct_bytes(f), 88); in bch2_sb_ext_validate()
1274 prt_printf(out, " (size %zu):", vstruct_bytes(f)); in bch2_sb_field_to_text()
1358 prt_units_u64(out, vstruct_bytes(sb)); in bch2_sb_to_text()
Dsb-members.c329 if (mi_bytes > vstruct_bytes(&mi->field)) { in bch2_sb_members_v2_validate()
331 mi_bytes, vstruct_bytes(&mi->field)); in bch2_sb_members_v2_validate()
Dchecksum.c493 if (vstruct_bytes(&crypt->field) < sizeof(*crypt)) { in bch2_sb_crypt_validate()
495 vstruct_bytes(&crypt->field), sizeof(*crypt)); in bch2_sb_crypt_validate()
Dbset.h264 return ((void *) i) + round_up(vstruct_bytes(i), block_bytes); in bset_next_set()
Dchardev.c695 if (vstruct_bytes(sb) > arg.size) { in bch2_ioctl_read_super()
701 vstruct_bytes(sb)); in bch2_ioctl_read_super()
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()
Djournal.c62 prt_human_readable_u64(out, vstruct_bytes(buf->data)); in bch2_journal_buf_to_text()
262 prt_human_readable_u64(&pbuf, vstruct_bytes(buf->data)); in __journal_entry_close()
Dbcachefs_format.h1215 return (vstruct_bytes(&u->entry) - sizeof(struct jset_entry_dev_usage)) / in jset_entry_dev_usage_nr_types()