Home
last modified time | relevance | path

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

12

/linux/fs/bcachefs/
H A Dbcachefs_format.h735 struct bch_sb { struct
779 LE16_BITMASK(BCH_SB_BLOCK_SIZE, struct bch_sb, block_size, 0, 16); argument
781 LE64_BITMASK(BCH_SB_INITIALIZED, struct bch_sb, flags[0], 0, 1);
782 LE64_BITMASK(BCH_SB_CLEAN, struct bch_sb, flags[0], 1, 2);
783 LE64_BITMASK(BCH_SB_CSUM_TYPE, struct bch_sb, flags[0], 2, 8);
784 LE64_BITMASK(BCH_SB_ERROR_ACTION, struct bch_sb, flags[0], 8, 12);
786 LE64_BITMASK(BCH_SB_BTREE_NODE_SIZE, struct bch_sb, flags[0], 12, 28);
788 LE64_BITMASK(BCH_SB_GC_RESERVE, struct bch_sb, flags[0], 28, 33);
789 LE64_BITMASK(BCH_SB_ROOT_RESERVE, struct bch_sb, flags[0], 33, 40);
791 LE64_BITMASK(BCH_SB_META_CSUM_TYPE, struct bch_sb, flags[0], 40, 44);
[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 *);
109 void __bch2_sb_field_to_text(struct printbuf *, struct bch_sb *,
111 void bch2_sb_field_to_text(struct printbuf *, struct bch_sb *,
114 void bch2_sb_to_text(struct printbuf *, struct bch_sb *, bool, unsigned);
H 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()
H A Dopts.h54 u64 BCH2_NO_SB_OPT(const struct bch_sb *);
55 void SET_BCH2_NO_SB_OPT(struct bch_sb *, u64);
83 void (*to_text)(struct printbuf *, struct bch_fs *, struct bch_sb *, u64);
585 u64 (*get_sb)(const struct bch_sb *);
586 void (*set_sb)(struct bch_sb *, u64);
606 u64 bch2_opt_from_sb(struct bch_sb *, enum bch_opt_id);
607 int bch2_opts_from_sb(struct bch_opts *, struct bch_sb *);
608 void __bch2_opt_set_sb(struct bch_sb *, int, const struct bch_option *, u64);
621 void bch2_opt_to_text(struct printbuf *, struct bch_fs *, struct bch_sb *,
625 struct bch_fs *, struct bch_sb *,
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 Dsuper-io.c95 static int bch2_sb_field_validate(struct bch_sb *, struct bch_sb_field *,
98 struct bch_sb_field *bch2_sb_field_get_id(struct bch_sb *sb, in bch2_sb_field_get_id()
116 BUG_ON(__vstruct_bytes(struct bch_sb, sb_u64s) > sb->buffer_size); in __bch2_sb_field_resize()
173 size_t new_bytes = __vstruct_bytes(struct bch_sb, u64s); in bch2_sb_realloc()
175 struct bch_sb *new_sb; in bch2_sb_realloc()
331 static int bch2_sb_compatible(struct bch_sb *sb, struct printbuf *out) in bch2_sb_compatible()
372 struct bch_sb *sb = disk_sb->sb; in bch2_sb_validate()
558 struct bch_sb *src = c->disk_sb.sb; in bch2_sb_update()
600 static int __copy_super(struct bch_sb_handle *dst_handle, struct bch_sb *src) in __copy_super()
603 struct bch_sb *dst = dst_handle->sb; in __copy_super()
[all …]
H A Dopts.c142 struct bch_sb *sb, in bch2_opt_fix_errors_to_text()
166 u64 BCH2_NO_SB_OPT(const struct bch_sb *sb) in BCH2_NO_SB_OPT()
171 void SET_BCH2_NO_SB_OPT(struct bch_sb *sb, u64 v) in SET_BCH2_NO_SB_OPT()
410 struct bch_fs *c, struct bch_sb *sb, in bch2_opt_to_text()
454 struct bch_fs *c, struct bch_sb *sb, in bch2_opts_to_text()
622 u64 bch2_opt_from_sb(struct bch_sb *sb, enum bch_opt_id id) in bch2_opt_from_sb()
642 int bch2_opts_from_sb(struct bch_opts *opts, struct bch_sb *sb) in bch2_opts_from_sb()
668 void __bch2_opt_set_sb(struct bch_sb *sb, int dev_idx, in __bch2_opt_set_sb()
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.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()
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);
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 *);
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()
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()
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 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 Dcompress.h64 void bch2_opt_compression_to_text(struct printbuf *, struct bch_fs *, struct bch_sb *, u64);
H A Dchecksum.c494 static int bch2_sb_crypt_validate(struct bch_sb *sb, struct bch_sb_field *f, in bch2_sb_crypt_validate()
513 static void bch2_sb_crypt_to_text(struct printbuf *out, struct bch_sb *sb, in bch2_sb_crypt_to_text()
587 int bch2_request_key(struct bch_sb *sb, struct bch_key *key) in bch2_request_key()
615 int bch2_revoke_key(struct bch_sb *sb) in bch2_revoke_key()
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.c284 static int bch2_sb_downgrade_validate(struct bch_sb *sb, struct bch_sb_field *f, in bch2_sb_downgrade_validate()
318 static void bch2_sb_downgrade_to_text(struct printbuf *out, struct bch_sb *sb, in bch2_sb_downgrade_to_text()
H A Djournal.h446 int bch2_dev_journal_init(struct bch_dev *, struct bch_sb *);
H A Dsuper.c745 static struct bch_fs *bch2_fs_alloc(struct bch_sb *sb, struct bch_opts opts) in bch2_fs_alloc()
1080 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()
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 Dchardev.c548 struct bch_sb *sb; in bch2_ioctl_read_super()
H A Dcompress.c765 struct bch_sb *sb, in bch2_opt_compression_to_text()
H A Dbcachefs.h541 struct bch_sb *sb_read_scratch;

12