Searched refs:vstruct_bytes (Results 1 – 11 of 11) sorted by relevance
/linux/fs/bcachefs/ |
H A D | vstructs.h | 26 #define vstruct_bytes(_s) \ macro 41 (round_up(vstruct_bytes(_s), 512 << (_sector_block_bits)) >> 9)
|
H A D | sb-clean.c | 165 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()
|
H A D | journal_io.c | 146 size_t bytes = vstruct_bytes(j); in journal_entry_add() 198 bool identical = bytes == vstruct_bytes(&dup->j) && in journal_entry_add() 716 if (vstruct_bytes(entry) < sizeof(*u)) in journal_entry_dev_usage_to_text() 789 unsigned bytes = vstruct_bytes(entry); in journal_entry_datetime_validate() 793 if (journal_entry_err_on(vstruct_bytes(entry) < expected, in journal_entry_datetime_validate() 968 size_t bytes = vstruct_bytes(jset); in jset_validate_early() 1070 if (vstruct_bytes(j) > buf->size) { in journal_read_bucket() 1072 vstruct_bytes(j)); in journal_read_bucket() 1920 bytes = vstruct_bytes(jset); in bch2_journal_write_prep() 1924 vstruct_bytes(jset), w->sectors << 9, in bch2_journal_write_prep() [all …]
|
H A D | super-io.c | 651 memcpy(dst_f, src_f, vstruct_bytes(src_f)); in __copy_super() 708 bytes = vstruct_bytes(sb->sb); in read_one_super() 971 roundup((size_t) vstruct_bytes(sb), in write_one_super() 1238 if (vstruct_bytes(f) < 88) { in bch2_sb_ext_validate() 1239 prt_printf(err, "field too small (%zu < %u)", vstruct_bytes(f), 88); in bch2_sb_ext_validate() 1337 prt_printf(out, " (size %zu):", vstruct_bytes(f)); in bch2_sb_field_to_text() 1429 prt_units_u64(out, vstruct_bytes(sb)); in bch2_sb_to_text()
|
H A D | sb-members.c | 329 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()
|
H A D | chardev.c | 571 if (vstruct_bytes(sb) > arg.size) { in bch2_ioctl_read_super() 577 vstruct_bytes(sb)); in bch2_ioctl_read_super()
|
H A D | checksum.c | 499 if (vstruct_bytes(&crypt->field) < sizeof(*crypt)) { in bch2_sb_crypt_validate() 501 vstruct_bytes(&crypt->field), sizeof(*crypt)); in bch2_sb_crypt_validate()
|
H A D | bset.h | 264 return ((void *) i) + round_up(vstruct_bytes(i), block_bytes); in bset_next_set()
|
H A D | quota.c | 27 if (vstruct_bytes(&q->field) < sizeof(*q)) { in bch2_sb_quota_validate() 29 vstruct_bytes(&q->field), sizeof(*q)); in bch2_sb_quota_validate()
|
H A D | bcachefs_format.h | 1227 return (vstruct_bytes(&u->entry) - sizeof(struct jset_entry_dev_usage)) / in jset_entry_dev_usage_nr_types() 1238 unsigned b = vstruct_bytes(&l->entry) - offsetof(struct jset_entry_log, d); in jset_entry_log_msg_bytes()
|
H A D | journal.c | 62 prt_human_readable_u64(out, vstruct_bytes(buf->data)); in bch2_journal_buf_to_text() 270 prt_human_readable_u64(&pbuf, vstruct_bytes(buf->data)); in __journal_entry_close()
|