Lines Matching refs:bch_sb
78 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()
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()
1172 static int bch2_sb_ext_validate(struct bch_sb *sb, struct bch_sb_field *f, in bch2_sb_ext_validate()
1183 static void bch2_sb_ext_to_text(struct printbuf *out, struct bch_sb *sb, in bch2_sb_ext_to_text()
1231 static int bch2_sb_field_validate(struct bch_sb *sb, struct bch_sb_field *f, in bch2_sb_field_validate()
1251 void __bch2_sb_field_to_text(struct printbuf *out, struct bch_sb *sb, in __bch2_sb_field_to_text()
1264 void bch2_sb_field_to_text(struct printbuf *out, struct bch_sb *sb, in bch2_sb_field_to_text()
1303 void bch2_sb_to_text(struct printbuf *out, struct bch_sb *sb, in bch2_sb_to_text()