Lines Matching refs:bch_dev

22 static inline bool bch2_dev_is_online(struct bch_dev *ca)  in bch2_dev_is_online()
27 static inline struct bch_dev *bch2_dev_rcu(struct bch_fs *, unsigned);
32 struct bch_dev *ca = bch2_dev_rcu(c, dev); in bch2_dev_idx_is_online()
36 static inline bool bch2_dev_is_healthy(struct bch_dev *ca) in bch2_dev_is_healthy()
80 static inline struct bch_dev *__bch2_next_dev_idx(struct bch_fs *c, unsigned idx, in __bch2_next_dev_idx()
83 struct bch_dev *ca = NULL; in __bch2_next_dev_idx()
95 static inline struct bch_dev *__bch2_next_dev(struct bch_fs *c, struct bch_dev *ca, in __bch2_next_dev()
102 for (struct bch_dev *_ca = NULL; \
111 static inline void bch2_dev_get(struct bch_dev *ca) in bch2_dev_get()
120 static inline void __bch2_dev_put(struct bch_dev *ca) in __bch2_dev_put()
134 static inline void bch2_dev_put(struct bch_dev *ca) in bch2_dev_put()
140 static inline struct bch_dev *bch2_get_next_dev(struct bch_fs *c, struct bch_dev *ca) in bch2_get_next_dev()
156 for (struct bch_dev *_ca = NULL; \
159 static inline struct bch_dev *bch2_get_next_online_dev(struct bch_fs *c, in bch2_get_next_online_dev()
160 struct bch_dev *ca, in bch2_get_next_online_dev()
177 for (struct bch_dev *_ca = NULL; \
194 static inline bool bucket_valid(const struct bch_dev *ca, u64 b) in bucket_valid()
199 static inline struct bch_dev *bch2_dev_have_ref(const struct bch_fs *c, unsigned dev) in bch2_dev_have_ref()
206 static inline struct bch_dev *bch2_dev_locked(struct bch_fs *c, unsigned dev) in bch2_dev_locked()
215 static inline struct bch_dev *bch2_dev_rcu_noerror(struct bch_fs *c, unsigned dev) in bch2_dev_rcu_noerror()
226 static inline struct bch_dev *bch2_dev_rcu(struct bch_fs *c, unsigned dev) in bch2_dev_rcu()
228 struct bch_dev *ca = bch2_dev_rcu_noerror(c, dev); in bch2_dev_rcu()
234 static inline struct bch_dev *bch2_dev_tryget_noerror(struct bch_fs *c, unsigned dev) in bch2_dev_tryget_noerror()
237 struct bch_dev *ca = bch2_dev_rcu_noerror(c, dev); in bch2_dev_tryget_noerror()
243 static inline struct bch_dev *bch2_dev_tryget(struct bch_fs *c, unsigned dev) in bch2_dev_tryget()
245 struct bch_dev *ca = bch2_dev_tryget_noerror(c, dev); in bch2_dev_tryget()
251 static inline struct bch_dev *bch2_dev_bucket_tryget_noerror(struct bch_fs *c, struct bpos bucket) in bch2_dev_bucket_tryget_noerror()
253 struct bch_dev *ca = bch2_dev_tryget_noerror(c, bucket.inode); in bch2_dev_bucket_tryget_noerror()
261 void bch2_dev_bucket_missing(struct bch_dev *, u64);
263 static inline struct bch_dev *bch2_dev_bucket_tryget(struct bch_fs *c, struct bpos bucket) in bch2_dev_bucket_tryget()
265 struct bch_dev *ca = bch2_dev_tryget(c, bucket.inode); in bch2_dev_bucket_tryget()
274 static inline struct bch_dev *bch2_dev_iterate_noerror(struct bch_fs *c, struct bch_dev *ca, unsign… in bch2_dev_iterate_noerror()
282 static inline struct bch_dev *bch2_dev_iterate(struct bch_fs *c, struct bch_dev *ca, unsigned dev_i… in bch2_dev_iterate()
290 static inline struct bch_dev *bch2_dev_get_ioref(struct bch_fs *c, unsigned dev, in bch2_dev_get_ioref()
296 struct bch_dev *ca = bch2_dev_rcu(c, dev); in bch2_dev_get_ioref()
353 void bch2_dev_io_errors_to_text(struct printbuf *, struct bch_dev *);
354 void bch2_dev_errors_reset(struct bch_dev *);
356 static inline bool bch2_dev_btree_bitmap_marked_sectors(struct bch_dev *ca, u64 start, unsigned sec… in bch2_dev_btree_bitmap_marked_sectors()