Home
last modified time | relevance | path

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

12

/linux/fs/bcachefs/
A Dbcachefs_format.h728 struct bch_sb { struct
775 LE64_BITMASK(BCH_SB_CLEAN, struct bch_sb, flags[0], 1, 2);
800 struct bch_sb, flags[0], 63, 64);
814 struct bch_sb, flags[1], 14, 20);
824 struct bch_sb, flags[2], 0, 4);
841 struct bch_sb, flags[4], 60, 64);
844 struct bch_sb, flags[5], 0, 16);
846 struct bch_sb, flags[5], 16, 32);
1089 static inline __le64 __bch2_sb_magic(struct bch_sb *sb) in __bch2_sb_magic()
1097 static inline __u64 __jset_magic(struct bch_sb *sb) in __jset_magic()
[all …]
A 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);
A 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 *,
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 *,
A 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()
A Dsuper-io.c81 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()
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()
557 struct bch_sb *dst = dst_handle->sb; in __copy_super()
611 int bch2_sb_to_fs(struct bch_fs *c, struct bch_sb *src) in bch2_sb_to_fs()
891 struct bch_sb *sb = ca->disk_sb.sb; in read_back_super()
909 struct bch_sb *sb = ca->disk_sb.sb; in write_one_super()
[all …]
A 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()
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()
A 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()
A 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()
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);
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 *);
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()
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()
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()
A Dsuper_types.h6 struct bch_sb *sb;
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()
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()
A Dcompress.h64 void bch2_opt_compression_to_text(struct printbuf *, struct bch_fs *, struct bch_sb *, u64);
A Dreplicas.h49 unsigned bch2_sb_dev_has_data(struct bch_sb *, unsigned);
A 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()
A 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()
A 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()
A Djournal.h445 int bch2_dev_journal_init(struct bch_dev *, struct bch_sb *);
A 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()
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()
A Dcompress.c714 struct bch_sb *sb, in bch2_opt_compression_to_text()

Completed in 50 milliseconds

12