Home
last modified time | relevance | path

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

/linux/fs/bcachefs/
H A Dbcachefs_format.h749 struct bch_sb { struct
793 LE16_BITMASK(BCH_SB_BLOCK_SIZE, struct bch_sb, block_size, 0, 16); argument
795 LE64_BITMASK(BCH_SB_INITIALIZED, struct bch_sb, flags[0], 0, 1);
796 LE64_BITMASK(BCH_SB_CLEAN, struct bch_sb, flags[0], 1, 2);
797 LE64_BITMASK(BCH_SB_CSUM_TYPE, struct bch_sb, flags[0], 2, 8);
798 LE64_BITMASK(BCH_SB_ERROR_ACTION, struct bch_sb, flags[0], 8, 12);
800 LE64_BITMASK(BCH_SB_BTREE_NODE_SIZE, struct bch_sb, flags[0], 12, 28);
802 LE64_BITMASK(BCH_SB_GC_RESERVE, struct bch_sb, flags[0], 28, 33);
803 LE64_BITMASK(BCH_SB_ROOT_RESERVE, struct bch_sb, flags[0], 33, 40);
805 LE64_BITMASK(BCH_SB_META_CSUM_TYPE, struct bch_sb, flag
750 csumbch_sb global() argument
751 versionbch_sb global() argument
775 layoutbch_sb global() argument
777 startbch_sb global() argument
[all...]
H A Dsuper-io.h42 struct bch_sb_field *bch2_sb_field_get_id(struct bch_sb *, enum bch_sb_field_type);
66 int (*validate)(struct bch_sb *, struct bch_sb_field *,
68 void (*to_text)(struct printbuf *, struct bch_sb *, struct bch_sb_field *);
89 int bch2_sb_to_fs(struct bch_fs *, struct bch_sb *);
95 int bch2_sb_validate(struct bch_sb *, u64, enum bch_validate_flags, struct printbuf *);
112 void __bch2_sb_field_to_text(struct printbuf *, struct bch_sb *,
114 void bch2_sb_field_to_text(struct printbuf *, struct bch_sb *,
117 void bch2_sb_to_text(struct printbuf *, struct bch_sb *, bool, unsigned);
H A 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 *,
H A Dsb-members.c59 struct bch_member *bch2_members_v2_get_mut(struct bch_sb *sb, int i) in bch2_members_v2_get_mut()
85 struct bch_member bch2_sb_member_get(struct bch_sb *sb, int i) in bch2_sb_member_get()
163 struct bch_sb *sb, in validate_member()
210 struct bch_sb *sb, in member_to_text()
301 static int bch2_sb_members_v1_validate(struct bch_sb *sb, struct bch_sb_field *f, in bch2_sb_members_v1_validate()
323 static void bch2_sb_members_v1_to_text(struct printbuf *out, struct bch_sb *sb, in bch2_sb_members_v1_to_text()
347 static void bch2_sb_members_v2_to_text(struct printbuf *out, struct bch_sb *sb, in bch2_sb_members_v2_to_text()
376 static int bch2_sb_members_v2_validate(struct bch_sb *sb, struct bch_sb_field *f, in bch2_sb_members_v2_validate()
524 unsigned bch2_sb_nr_devices(const struct bch_sb *sb) in bch2_sb_nr_devices()
529 nr += bch2_member_exists((struct bch_sb *) s in bch2_sb_nr_devices()
[all...]
H A Dsuper-io.c111 static int bch2_sb_field_validate(struct bch_sb *, struct bch_sb_field *,
114 struct bch_sb_field *bch2_sb_field_get_id(struct bch_sb *sb, in bch2_sb_field_get_id()
132 BUG_ON(__vstruct_bytes(struct bch_sb, sb_u64s) > sb->buffer_size); in __bch2_sb_field_resize()
189 size_t new_bytes = __vstruct_bytes(struct bch_sb, u64s); in bch2_sb_realloc()
191 struct bch_sb *new_sb; in bch2_sb_realloc()
347 static int bch2_sb_compatible(struct bch_sb *sb, struct printbuf *out) in bch2_sb_compatible()
385 int bch2_sb_validate(struct bch_sb *sb, u64 read_offset, in bch2_sb_validate()
595 struct bch_sb *src = c->disk_sb.sb; in bch2_sb_update()
641 static int __copy_super(struct bch_sb_handle *dst_handle, struct bch_sb *src) in __copy_super()
644 struct bch_sb *ds in __copy_super()
[all...]
H A Dsb-counters.c29 static int bch2_sb_counters_validate(struct bch_sb *sb, struct bch_sb_field *f, in bch2_sb_counters_validate()
35 static void bch2_sb_counters_to_text(struct printbuf *out, struct bch_sb *sb, in bch2_sb_counters_to_text()
H A Dsb-members.h19 struct bch_member *bch2_members_v2_get_mut(struct bch_sb *sb, int i);
20 struct bch_member bch2_sb_member_get(struct bch_sb *sb, int i);
317 static inline bool bch2_member_exists(struct bch_sb *sb, unsigned dev) in bch2_member_exists()
326 unsigned bch2_sb_nr_devices(const struct bch_sb *);
H A 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()
90 struct bch_sb *sb, in bch2_sb_disk_groups_to_text()
411 void bch2_disk_path_to_text_sb(struct printbuf *out, struct bch_sb *sb, unsigned v) in bch2_disk_path_to_text_sb()
554 static void bch2_target_to_text_sb(struct printbuf *out, struct bch_sb *sb, unsigned v) in bch2_target_to_text_sb()
584 struct bch_sb *sb, in bch2_opt_target_to_text()
H A 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()
867 unsigned bch2_sb_dev_has_data(struct bch_sb *sb, unsigned dev) in bch2_sb_dev_has_data()
H A 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()
H A Dcompress.h64 void bch2_opt_compression_to_text(struct printbuf *, struct bch_fs *, struct bch_sb *, u64);
H A Djournal_seq_blacklist.c175 static int bch2_sb_journal_seq_blacklist_validate(struct bch_sb *sb, struct bch_sb_field *f, in bch2_sb_journal_seq_blacklist_validate()
205 struct bch_sb *sb, in bch2_sb_journal_seq_blacklist_to_text()
H A Dreplicas.h49 unsigned bch2_sb_dev_has_data(struct bch_sb *, unsigned);
H A Dsb-clean.c212 static int bch2_sb_clean_validate(struct bch_sb *sb, struct bch_sb_field *f, in bch2_sb_clean_validate()
237 static void bch2_sb_clean_to_text(struct printbuf *out, struct bch_sb *sb, in bch2_sb_clean_to_text()
H A Dsb-downgrade.c301 static int bch2_sb_downgrade_validate(struct bch_sb *sb, struct bch_sb_field *f, in bch2_sb_downgrade_validate()
335 static void bch2_sb_downgrade_to_text(struct printbuf *out, struct bch_sb *sb, in bch2_sb_downgrade_to_text()
H A Drecovery_passes.c73 static int bch2_sb_recovery_passes_validate(struct bch_sb *sb, struct bch_sb_field *f, in bch2_sb_recovery_passes_validate()
80 struct bch_sb *sb, in bch2_sb_recovery_passes_to_text()
H A 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()
H A Dsuper.c825 static struct bch_fs *bch2_fs_alloc(struct bch_sb *sb, struct bch_opts *opts, in bch2_fs_alloc()
1247 static int bch2_dev_may_add(struct bch_sb *sb, struct bch_fs *c) in bch2_dev_may_add()
2371 static inline int sb_cmp(struct bch_sb *l, struct bch_sb *r) in sb_cmp()
H A Dcompress.c759 struct bch_sb *sb, in bch2_opt_compression_to_text()
H A Dbcachefs.h621 struct bch_sb *sb_read_scratch;