#include "bcachefs.h"
#include "btree_cache.h"
#include "disk_groups.h"
#include "error.h"
#include "opts.h"
#include "replicas.h"
#include "sb-members.h"
#include "super-io.h"
void bch2_dev_missing(struct bch_fs *c, unsigned dev)
{ … }
void bch2_dev_bucket_missing(struct bch_fs *c, struct bpos bucket)
{ … }
#define x …
static const char * const bch2_iops_measurements[] = …;
char * const bch2_member_error_strs[] = …;
#undef x
struct bch_member *bch2_members_v2_get_mut(struct bch_sb *sb, int i)
{ … }
static struct bch_member members_v2_get(struct bch_sb_field_members_v2 *mi, int i)
{ … }
static struct bch_member *members_v1_get_mut(struct bch_sb_field_members_v1 *mi, int i)
{ … }
static struct bch_member members_v1_get(struct bch_sb_field_members_v1 *mi, int i)
{ … }
struct bch_member bch2_sb_member_get(struct bch_sb *sb, int i)
{ … }
static int sb_members_v2_resize_entries(struct bch_fs *c)
{ … }
int bch2_sb_members_v2_init(struct bch_fs *c)
{ … }
int bch2_sb_members_cpy_v2_v1(struct bch_sb_handle *disk_sb)
{ … }
static int validate_member(struct printbuf *err,
struct bch_member m,
struct bch_sb *sb,
int i)
{ … }
static void member_to_text(struct printbuf *out,
struct bch_member m,
struct bch_sb_field_disk_groups *gi,
struct bch_sb *sb,
int i)
{ … }
static int bch2_sb_members_v1_validate(struct bch_sb *sb, struct bch_sb_field *f,
enum bch_validate_flags flags, struct printbuf *err)
{ … }
static void bch2_sb_members_v1_to_text(struct printbuf *out, struct bch_sb *sb,
struct bch_sb_field *f)
{ … }
const struct bch_sb_field_ops bch_sb_field_ops_members_v1 = …;
static void bch2_sb_members_v2_to_text(struct printbuf *out, struct bch_sb *sb,
struct bch_sb_field *f)
{ … }
static int bch2_sb_members_v2_validate(struct bch_sb *sb, struct bch_sb_field *f,
enum bch_validate_flags flags, struct printbuf *err)
{ … }
const struct bch_sb_field_ops bch_sb_field_ops_members_v2 = …;
void bch2_sb_members_from_cpu(struct bch_fs *c)
{ … }
void bch2_dev_io_errors_to_text(struct printbuf *out, struct bch_dev *ca)
{ … }
void bch2_dev_errors_reset(struct bch_dev *ca)
{ … }
bool bch2_dev_btree_bitmap_marked(struct bch_fs *c, struct bkey_s_c k)
{ … }
static void __bch2_dev_btree_bitmap_mark(struct bch_sb_field_members_v2 *mi, unsigned dev,
u64 start, unsigned sectors)
{ … }
void bch2_dev_btree_bitmap_mark(struct bch_fs *c, struct bkey_s_c k)
{ … }