Lines Matching refs:bch_fs

16 int bch2_sb_members_v2_init(struct bch_fs *c);
70 static inline struct bch_dev *__bch2_next_dev_idx(struct bch_fs *c, unsigned idx, in __bch2_next_dev_idx()
85 static inline struct bch_dev *__bch2_next_dev(struct bch_fs *c, struct bch_dev *ca, in __bch2_next_dev()
124 static inline struct bch_dev *bch2_get_next_dev(struct bch_fs *c, struct bch_dev *ca) in bch2_get_next_dev()
145 static inline struct bch_dev *bch2_get_next_online_dev(struct bch_fs *c, in bch2_get_next_online_dev()
175 static inline bool bch2_dev_exists(const struct bch_fs *c, unsigned dev) in bch2_dev_exists()
185 static inline struct bch_dev *bch2_dev_have_ref(const struct bch_fs *c, unsigned dev) in bch2_dev_have_ref()
192 static inline struct bch_dev *bch2_dev_locked(struct bch_fs *c, unsigned dev) in bch2_dev_locked()
201 static inline struct bch_dev *bch2_dev_rcu_noerror(struct bch_fs *c, unsigned dev) in bch2_dev_rcu_noerror()
208 void bch2_dev_missing(struct bch_fs *, unsigned);
210 static inline struct bch_dev *bch2_dev_rcu(struct bch_fs *c, unsigned dev) in bch2_dev_rcu()
218 static inline struct bch_dev *bch2_dev_tryget_noerror(struct bch_fs *c, unsigned dev) in bch2_dev_tryget_noerror()
228 static inline struct bch_dev *bch2_dev_tryget(struct bch_fs *c, unsigned dev) in bch2_dev_tryget()
236 static inline struct bch_dev *bch2_dev_bucket_tryget_noerror(struct bch_fs *c, struct bpos bucket) in bch2_dev_bucket_tryget_noerror()
246 void bch2_dev_bucket_missing(struct bch_fs *, struct bpos);
248 static inline struct bch_dev *bch2_dev_bucket_tryget(struct bch_fs *c, struct bpos bucket) in bch2_dev_bucket_tryget()
256 static inline struct bch_dev *bch2_dev_iterate_noerror(struct bch_fs *c, struct bch_dev *ca, unsign… in bch2_dev_iterate_noerror()
264 static inline struct bch_dev *bch2_dev_iterate(struct bch_fs *c, struct bch_dev *ca, unsigned dev_i… in bch2_dev_iterate()
272 static inline struct bch_dev *bch2_dev_get_ioref(struct bch_fs *c, unsigned dev, int rw) in bch2_dev_get_ioref()
291 static inline struct bch_devs_mask bch2_online_devs(struct bch_fs *c) in bch2_online_devs()
342 void bch2_sb_members_from_cpu(struct bch_fs *);
362 bool bch2_dev_btree_bitmap_marked(struct bch_fs *, struct bkey_s_c);
363 void bch2_dev_btree_bitmap_mark(struct bch_fs *, struct bkey_s_c);
365 int bch2_sb_member_alloc(struct bch_fs *);