/linux-6.12.1/fs/bcachefs/ |
D | bcachefs_format.h | 728 struct bch_sb { struct 772 LE16_BITMASK(BCH_SB_BLOCK_SIZE, struct bch_sb, block_size, 0, 16); argument 774 LE64_BITMASK(BCH_SB_INITIALIZED, struct bch_sb, flags[0], 0, 1); 775 LE64_BITMASK(BCH_SB_CLEAN, struct bch_sb, flags[0], 1, 2); 776 LE64_BITMASK(BCH_SB_CSUM_TYPE, struct bch_sb, flags[0], 2, 8); 777 LE64_BITMASK(BCH_SB_ERROR_ACTION, struct bch_sb, flags[0], 8, 12); 779 LE64_BITMASK(BCH_SB_BTREE_NODE_SIZE, struct bch_sb, flags[0], 12, 28); 781 LE64_BITMASK(BCH_SB_GC_RESERVE, struct bch_sb, flags[0], 28, 33); 782 LE64_BITMASK(BCH_SB_ROOT_RESERVE, struct bch_sb, flags[0], 33, 40); 784 LE64_BITMASK(BCH_SB_META_CSUM_TYPE, struct bch_sb, flags[0], 40, 44); [all …]
|
D | super-io.h | 30 struct bch_sb_field *bch2_sb_field_get_id(struct bch_sb *, enum bch_sb_field_type); 54 int (*validate)(struct bch_sb *, struct bch_sb_field *, 56 void (*to_text)(struct printbuf *, struct bch_sb *, struct bch_sb_field *); 77 int bch2_sb_to_fs(struct bch_fs *, struct bch_sb *); 97 void __bch2_sb_field_to_text(struct printbuf *, struct bch_sb *, 99 void bch2_sb_field_to_text(struct printbuf *, struct bch_sb *, 102 void bch2_sb_to_text(struct printbuf *, struct bch_sb *, bool, unsigned);
|
D | opts.h | 52 u64 BCH2_NO_SB_OPT(const struct bch_sb *); 53 void SET_BCH2_NO_SB_OPT(struct bch_sb *, u64); 81 void (*to_text)(struct printbuf *, struct bch_fs *, struct bch_sb *, u64); 571 u64 (*get_sb)(const struct bch_sb *); 572 void (*set_sb)(struct bch_sb *, u64); 592 u64 bch2_opt_from_sb(struct bch_sb *, enum bch_opt_id); 593 int bch2_opts_from_sb(struct bch_opts *, struct bch_sb *); 594 void __bch2_opt_set_sb(struct bch_sb *, int, const struct bch_option *, u64); 607 void bch2_opt_to_text(struct printbuf *, struct bch_fs *, struct bch_sb *, 611 struct bch_fs *, struct bch_sb *,
|
D | disk_groups.h | 89 void bch2_disk_path_to_text_sb(struct printbuf *, struct bch_sb *, unsigned); 94 void bch2_opt_target_to_text(struct printbuf *, struct bch_fs *, struct bch_sb *, u64); 106 const char *bch2_sb_validate_disk_groups(struct bch_sb *,
|
D | sb-members.c | 37 struct bch_member *bch2_members_v2_get_mut(struct bch_sb *sb, int i) in bch2_members_v2_get_mut() 63 struct bch_member bch2_sb_member_get(struct bch_sb *sb, int i) in bch2_sb_member_get() 136 struct bch_sb *sb, in validate_member() 177 struct bch_sb *sb, in member_to_text() 273 static int bch2_sb_members_v1_validate(struct bch_sb *sb, struct bch_sb_field *f, in bch2_sb_members_v1_validate() 295 static void bch2_sb_members_v1_to_text(struct printbuf *out, struct bch_sb *sb, in bch2_sb_members_v1_to_text() 311 static void bch2_sb_members_v2_to_text(struct printbuf *out, struct bch_sb *sb, in bch2_sb_members_v2_to_text() 322 static int bch2_sb_members_v2_validate(struct bch_sb *sb, struct bch_sb_field *f, in bch2_sb_members_v2_validate() 477 unsigned bch2_sb_nr_devices(const struct bch_sb *sb) in bch2_sb_nr_devices() 482 nr += bch2_member_exists((struct bch_sb *) sb, i); in bch2_sb_nr_devices()
|
D | super-io.c | 78 static int bch2_sb_field_validate(struct bch_sb *, struct bch_sb_field *, 81 struct bch_sb_field *bch2_sb_field_get_id(struct bch_sb *sb, in bch2_sb_field_get_id() 99 BUG_ON(__vstruct_bytes(struct bch_sb, sb_u64s) > sb->buffer_size); in __bch2_sb_field_resize() 156 size_t new_bytes = __vstruct_bytes(struct bch_sb, u64s); in bch2_sb_realloc() 158 struct bch_sb *new_sb; in bch2_sb_realloc() 314 static int bch2_sb_compatible(struct bch_sb *sb, struct printbuf *out) in bch2_sb_compatible() 355 struct bch_sb *sb = disk_sb->sb; in bch2_sb_validate() 515 struct bch_sb *src = c->disk_sb.sb; in bch2_sb_update() 554 static int __copy_super(struct bch_sb_handle *dst_handle, struct bch_sb *src) in __copy_super() 557 struct bch_sb *dst = dst_handle->sb; in __copy_super() [all …]
|
D | opts.c | 140 struct bch_sb *sb, in bch2_opt_fix_errors_to_text() 164 u64 BCH2_NO_SB_OPT(const struct bch_sb *sb) in BCH2_NO_SB_OPT() 169 void SET_BCH2_NO_SB_OPT(struct bch_sb *sb, u64 v) in SET_BCH2_NO_SB_OPT() 407 struct bch_fs *c, struct bch_sb *sb, in bch2_opt_to_text() 451 struct bch_fs *c, struct bch_sb *sb, in bch2_opts_to_text() 619 u64 bch2_opt_from_sb(struct bch_sb *sb, enum bch_opt_id id) in bch2_opt_from_sb() 639 int bch2_opts_from_sb(struct bch_opts *opts, struct bch_sb *sb) in bch2_opts_from_sb() 665 void __bch2_opt_set_sb(struct bch_sb *sb, int dev_idx, in __bch2_opt_set_sb()
|
D | journal_sb.c | 19 static int bch2_sb_journal_validate(struct bch_sb *sb, struct bch_sb_field *f, in bch2_sb_journal_validate() 71 static void bch2_sb_journal_to_text(struct printbuf *out, struct bch_sb *sb, in bch2_sb_journal_to_text() 101 static int bch2_sb_journal_v2_validate(struct bch_sb *sb, struct bch_sb_field *f, in bch2_sb_journal_v2_validate() 172 static void bch2_sb_journal_v2_to_text(struct printbuf *out, struct bch_sb *sb, in bch2_sb_journal_v2_to_text()
|
D | checksum.h | 73 int bch2_request_key(struct bch_sb *, struct bch_key *); 75 int bch2_revoke_key(struct bch_sb *); 213 static inline struct nonce __bch2_sb_key_nonce(struct bch_sb *sb) in __bch2_sb_key_nonce()
|
D | sb-counters.c | 23 static int bch2_sb_counters_validate(struct bch_sb *sb, struct bch_sb_field *f, in bch2_sb_counters_validate() 29 static void bch2_sb_counters_to_text(struct printbuf *out, struct bch_sb *sb, in bch2_sb_counters_to_text()
|
D | sb-members.h | 18 struct bch_member *bch2_members_v2_get_mut(struct bch_sb *sb, int i); 19 struct bch_member bch2_sb_member_get(struct bch_sb *sb, int i); 309 static inline bool bch2_member_exists(struct bch_sb *sb, unsigned dev) in bch2_member_exists() 318 unsigned bch2_sb_nr_devices(const struct bch_sb *);
|
D | disk_groups.c | 21 static int bch2_sb_disk_groups_validate(struct bch_sb *sb, struct bch_sb_field *f, in bch2_sb_disk_groups_validate() 119 struct bch_sb *sb, in bch2_sb_disk_groups_to_text() 430 void bch2_disk_path_to_text_sb(struct printbuf *out, struct bch_sb *sb, unsigned v) in bch2_disk_path_to_text_sb() 579 static void bch2_target_to_text_sb(struct printbuf *out, struct bch_sb *sb, unsigned v) in bch2_target_to_text_sb() 609 struct bch_sb *sb, in bch2_opt_target_to_text()
|
D | replicas.c | 70 struct bch_sb *sb, in bch2_replicas_entry_sb_validate() 692 struct bch_sb *sb, in bch2_cpu_replicas_validate() 728 static int bch2_sb_replicas_validate(struct bch_sb *sb, struct bch_sb_field *f, in bch2_sb_replicas_validate() 745 struct bch_sb *sb, in bch2_sb_replicas_to_text() 767 static int bch2_sb_replicas_v0_validate(struct bch_sb *sb, struct bch_sb_field *f, in bch2_sb_replicas_v0_validate() 784 struct bch_sb *sb, in bch2_sb_replicas_v0_to_text() 868 unsigned bch2_sb_dev_has_data(struct bch_sb *sb, unsigned dev) in bch2_sb_dev_has_data()
|
D | super_types.h | 6 struct bch_sb *sb;
|
D | sb-errors.c | 32 static int bch2_sb_errors_validate(struct bch_sb *sb, struct bch_sb_field *f, in bch2_sb_errors_validate() 57 static void bch2_sb_errors_to_text(struct printbuf *out, struct bch_sb *sb, in bch2_sb_errors_to_text()
|
D | journal_seq_blacklist.c | 165 static int bch2_sb_journal_seq_blacklist_validate(struct bch_sb *sb, struct bch_sb_field *f, in bch2_sb_journal_seq_blacklist_validate() 195 struct bch_sb *sb, in bch2_sb_journal_seq_blacklist_to_text()
|
D | compress.h | 64 void bch2_opt_compression_to_text(struct printbuf *, struct bch_fs *, struct bch_sb *, u64);
|
D | replicas.h | 49 unsigned bch2_sb_dev_has_data(struct bch_sb *, unsigned);
|
D | checksum.c | 488 static int bch2_sb_crypt_validate(struct bch_sb *sb, struct bch_sb_field *f, in bch2_sb_crypt_validate() 507 static void bch2_sb_crypt_to_text(struct printbuf *out, struct bch_sb *sb, in bch2_sb_crypt_to_text() 581 int bch2_request_key(struct bch_sb *sb, struct bch_key *key) in bch2_request_key() 609 int bch2_revoke_key(struct bch_sb *sb) in bch2_revoke_key()
|
D | sb-clean.c | 208 static int bch2_sb_clean_validate(struct bch_sb *sb, struct bch_sb_field *f, in bch2_sb_clean_validate() 233 static void bch2_sb_clean_to_text(struct printbuf *out, struct bch_sb *sb, in bch2_sb_clean_to_text()
|
D | sb-downgrade.c | 263 static int bch2_sb_downgrade_validate(struct bch_sb *sb, struct bch_sb_field *f, in bch2_sb_downgrade_validate() 297 static void bch2_sb_downgrade_to_text(struct printbuf *out, struct bch_sb *sb, in bch2_sb_downgrade_to_text()
|
D | journal.h | 445 int bch2_dev_journal_init(struct bch_dev *, struct bch_sb *);
|
D | super.c | 732 static struct bch_fs *bch2_fs_alloc(struct bch_sb *sb, struct bch_opts opts) in bch2_fs_alloc() 1074 static int bch2_dev_may_add(struct bch_sb *sb, struct bch_fs *c) in bch2_dev_may_add() 2003 static inline int sb_cmp(struct bch_sb *l, struct bch_sb *r) in sb_cmp()
|
D | quota.c | 22 static int bch2_sb_quota_validate(struct bch_sb *sb, struct bch_sb_field *f, in bch2_sb_quota_validate() 36 static void bch2_sb_quota_to_text(struct printbuf *out, struct bch_sb *sb, in bch2_sb_quota_to_text()
|
D | compress.c | 714 struct bch_sb *sb, in bch2_opt_compression_to_text()
|