Home
last modified time | relevance | path

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

12

/linux-6.15/fs/bcachefs/
H A Dbcachefs_format.h744 struct bch_sb { struct
816 struct bch_sb, flags[0], 63, 64);
830 struct bch_sb, flags[1], 14, 20);
840 struct bch_sb, flags[2], 0, 4);
858 struct bch_sb, flags[4], 60, 64);
861 struct bch_sb, flags[5], 0, 16);
863 struct bch_sb, flags[5], 16, 32);
866 struct bch_sb, flags[5], 48, 64);
1116 static inline __le64 __bch2_sb_magic(struct bch_sb *sb) in __bch2_sb_magic()
1124 static inline __u64 __jset_magic(struct bch_sb *sb) in __jset_magic()
[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 *);
111 void __bch2_sb_field_to_text(struct printbuf *, struct bch_sb *,
113 void bch2_sb_field_to_text(struct printbuf *, struct bch_sb *,
116 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.c39 struct bch_member *bch2_members_v2_get_mut(struct bch_sb *sb, int i) in bch2_members_v2_get_mut()
65 struct bch_member bch2_sb_member_get(struct bch_sb *sb, int i) in bch2_sb_member_get()
138 struct bch_sb *sb, in validate_member()
179 struct bch_sb *sb, in member_to_text()
275 static int bch2_sb_members_v1_validate(struct bch_sb *sb, struct bch_sb_field *f, in bch2_sb_members_v1_validate()
297 static void bch2_sb_members_v1_to_text(struct printbuf *out, struct bch_sb *sb, in bch2_sb_members_v1_to_text()
313 static void bch2_sb_members_v2_to_text(struct printbuf *out, struct bch_sb *sb, in bch2_sb_members_v2_to_text()
324 static int bch2_sb_members_v2_validate(struct bch_sb *sb, struct bch_sb_field *f, in bch2_sb_members_v2_validate()
479 unsigned bch2_sb_nr_devices(const struct bch_sb *sb) in bch2_sb_nr_devices()
484 nr += bch2_member_exists((struct bch_sb *) sb, i); in bch2_sb_nr_devices()
H A Dopts.c142 struct bch_sb *sb, in bch2_opt_fix_errors_to_text()
217 typedef u64 (*sb_opt_get_fn)(const struct bch_sb *);
218 typedef void (*sb_opt_set_fn)(struct bch_sb *, u64);
415 struct bch_fs *c, struct bch_sb *sb, in bch2_opt_to_text()
459 struct bch_fs *c, struct bch_sb *sb, in bch2_opts_to_text()
625 u64 bch2_opt_from_sb(struct bch_sb *sb, enum bch_opt_id id, int dev_idx) in bch2_opt_from_sb()
658 int bch2_opts_from_sb(struct bch_opts *opts, struct bch_sb *sb) in bch2_opts_from_sb()
670 void __bch2_opt_set_sb(struct bch_sb *sb, int dev_idx, in __bch2_opt_set_sb()
H A Dopts.h80 void (*to_text)(struct printbuf *, struct bch_fs *, struct bch_sb *, u64);
603 u64 (*get_sb)(const struct bch_sb *);
604 void (*set_sb)(struct bch_sb *, u64);
617 u64 bch2_opt_from_sb(struct bch_sb *, enum bch_opt_id, int);
618 int bch2_opts_from_sb(struct bch_opts *, struct bch_sb *);
619 void __bch2_opt_set_sb(struct bch_sb *, int, const struct bch_option *, u64);
632 void bch2_opt_to_text(struct printbuf *, struct bch_fs *, struct bch_sb *,
636 struct bch_fs *, struct bch_sb *,
H A Dsuper-io.c113 struct bch_sb_field *bch2_sb_field_get_id(struct bch_sb *sb, in bch2_sb_field_get_id()
131 BUG_ON(__vstruct_bytes(struct bch_sb, sb_u64s) > sb->buffer_size); in __bch2_sb_field_resize()
188 size_t new_bytes = __vstruct_bytes(struct bch_sb, u64s); in bch2_sb_realloc()
190 struct bch_sb *new_sb; in bch2_sb_realloc()
384 int bch2_sb_validate(struct bch_sb *sb, u64 read_offset, in bch2_sb_validate()
589 struct bch_sb *src = c->disk_sb.sb; in bch2_sb_update()
634 struct bch_sb *dst = dst_handle->sb; in __copy_super()
688 int bch2_sb_to_fs(struct bch_fs *c, struct bch_sb *src) in bch2_sb_to_fs()
969 struct bch_sb *sb = ca->disk_sb.sb; in read_back_super()
988 struct bch_sb *sb = ca->disk_sb.sb; in write_one_super()
[all …]
H A 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()
H A Dchecksum.h72 int bch2_request_key(struct bch_sb *, struct bch_key *);
74 int bch2_revoke_key(struct bch_sb *);
214 static inline struct nonce __bch2_sb_key_nonce(struct bch_sb *sb) in __bch2_sb_key_nonce()
H A 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);
327 static inline bool bch2_member_exists(struct bch_sb *sb, unsigned dev) in bch2_member_exists()
336 unsigned bch2_sb_nr_devices(const struct bch_sb *);
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 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()
578 static void bch2_target_to_text_sb(struct printbuf *out, struct bch_sb *sb, unsigned v) in bch2_target_to_text_sb()
608 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()
868 unsigned bch2_sb_dev_has_data(struct bch_sb *sb, unsigned dev) in bch2_sb_dev_has_data()
H A Dsuper_types.h12 struct bch_sb *sb;
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 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()
H A Dchecksum.c403 static int bch2_sb_crypt_validate(struct bch_sb *sb, struct bch_sb_field *f, in bch2_sb_crypt_validate()
422 static void bch2_sb_crypt_to_text(struct printbuf *out, struct bch_sb *sb, in bch2_sb_crypt_to_text()
496 int bch2_request_key(struct bch_sb *sb, struct bch_key *key) in bch2_request_key()
524 int bch2_revoke_key(struct bch_sb *sb) in bch2_revoke_key()
H A Dcompress.h64 void bch2_opt_compression_to_text(struct printbuf *, struct bch_fs *, struct bch_sb *, u64);
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.c294 static int bch2_sb_downgrade_validate(struct bch_sb *sb, struct bch_sb_field *f, in bch2_sb_downgrade_validate()
328 static void bch2_sb_downgrade_to_text(struct printbuf *out, struct bch_sb *sb, in bch2_sb_downgrade_to_text()
H A Djournal.h459 int bch2_dev_journal_init(struct bch_dev *, struct bch_sb *);
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.c740 static struct bch_fs *bch2_fs_alloc(struct bch_sb *sb, struct bch_opts opts) in bch2_fs_alloc()
1130 static int bch2_dev_may_add(struct bch_sb *sb, struct bch_fs *c) in bch2_dev_may_add()
2148 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()

12