Searched refs:vstruct_bytes (Results 1 – 11 of 11) sorted by relevance
/linux-6.12.1/fs/bcachefs/ |
D | vstructs.h | 26 #define vstruct_bytes(_s) \ macro 41 (round_up(vstruct_bytes(_s), 512 << (_sector_block_bits)) >> 9)
|
D | sb-clean.c | 161 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()
|
D | journal_io.c | 143 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 …]
|
D | super-io.c | 605 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()
|
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()
|
D | checksum.c | 493 if (vstruct_bytes(&crypt->field) < sizeof(*crypt)) { in bch2_sb_crypt_validate() 495 vstruct_bytes(&crypt->field), sizeof(*crypt)); in bch2_sb_crypt_validate()
|
D | bset.h | 264 return ((void *) i) + round_up(vstruct_bytes(i), block_bytes); in bset_next_set()
|
D | chardev.c | 695 if (vstruct_bytes(sb) > arg.size) { in bch2_ioctl_read_super() 701 vstruct_bytes(sb)); in bch2_ioctl_read_super()
|
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()
|
D | journal.c | 62 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()
|
D | bcachefs_format.h | 1215 return (vstruct_bytes(&u->entry) - sizeof(struct jset_entry_dev_usage)) / in jset_entry_dev_usage_nr_types()
|