Home
last modified time | relevance | path

Searched refs:bch_sb (Results 1 – 25 of 28) sorted by relevance

12

/linux-6.12.1/fs/bcachefs/
Dbcachefs_format.h728 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 …]
Dsuper-io.h30 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);
Dopts.h52 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 *,
Ddisk_groups.h89 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 *,
Dsb-members.c37 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()
Dsuper-io.c78 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 …]
Dopts.c140 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()
Djournal_sb.c19 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()
Dchecksum.h73 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()
Dsb-counters.c23 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()
Dsb-members.h18 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 *);
Ddisk_groups.c21 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()
Dreplicas.c70 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()
Dsuper_types.h6 struct bch_sb *sb;
Dsb-errors.c32 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()
Djournal_seq_blacklist.c165 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()
Dcompress.h64 void bch2_opt_compression_to_text(struct printbuf *, struct bch_fs *, struct bch_sb *, u64);
Dreplicas.h49 unsigned bch2_sb_dev_has_data(struct bch_sb *, unsigned);
Dchecksum.c488 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()
Dsb-clean.c208 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()
Dsb-downgrade.c263 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()
Djournal.h445 int bch2_dev_journal_init(struct bch_dev *, struct bch_sb *);
Dsuper.c732 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()
Dquota.c22 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()
Dcompress.c714 struct bch_sb *sb, in bch2_opt_compression_to_text()

12