Lines Matching refs:bch_fs
14 struct bch_fs;
19 void bch2_reset_alloc_cursors(struct bch_fs *);
26 struct dev_alloc_list bch2_dev_alloc_list(struct bch_fs *,
31 static inline struct bch_dev *ob_dev(struct bch_fs *c, struct open_bucket *ob) in ob_dev()
53 struct open_bucket *bch2_bucket_alloc(struct bch_fs *, struct bch_dev *,
57 static inline void ob_push(struct bch_fs *c, struct open_buckets *obs, in ob_push()
71 static inline struct open_bucket *ec_open_bucket(struct bch_fs *c, in ec_open_bucket()
84 void bch2_open_bucket_write_error(struct bch_fs *,
87 void __bch2_open_bucket_put(struct bch_fs *, struct open_bucket *);
89 static inline void bch2_open_bucket_put(struct bch_fs *c, struct open_bucket *ob) in bch2_open_bucket_put()
95 static inline void bch2_open_buckets_put(struct bch_fs *c, in bch2_open_buckets_put()
106 static inline void bch2_alloc_sectors_done_inlined(struct bch_fs *c, struct write_point *wp) in bch2_alloc_sectors_done_inlined()
123 static inline void bch2_open_bucket_get(struct bch_fs *c, in bch2_open_bucket_get()
137 static inline open_bucket_idx_t *open_bucket_hashslot(struct bch_fs *c, in open_bucket_hashslot()
145 static inline bool bch2_bucket_is_open(struct bch_fs *c, unsigned dev, u64 bucket) in bch2_bucket_is_open()
161 static inline bool bch2_bucket_is_open_safe(struct bch_fs *c, unsigned dev, u64 bucket) in bch2_bucket_is_open_safe()
192 struct bch_extent_ptr bch2_ob_ptr(struct bch_fs *, struct open_bucket *);
199 bch2_alloc_sectors_append_ptrs_inlined(struct bch_fs *c, struct write_point *wp, in bch2_alloc_sectors_append_ptrs_inlined()
225 void bch2_alloc_sectors_append_ptrs(struct bch_fs *, struct write_point *,
227 void bch2_alloc_sectors_done(struct bch_fs *, struct write_point *);
229 void bch2_open_buckets_stop(struct bch_fs *c, struct bch_dev *, bool);
241 void bch2_fs_allocator_foreground_init(struct bch_fs *);
243 void bch2_open_bucket_to_text(struct printbuf *, struct bch_fs *, struct open_bucket *);
244 void bch2_open_buckets_to_text(struct printbuf *, struct bch_fs *, struct bch_dev *);
245 void bch2_open_buckets_partial_to_text(struct printbuf *, struct bch_fs *);
247 void bch2_write_points_to_text(struct printbuf *, struct bch_fs *);
249 void bch2_fs_alloc_debug_to_text(struct printbuf *, struct bch_fs *);
252 void __bch2_wait_on_allocator(struct bch_fs *, struct closure *);
253 static inline void bch2_wait_on_allocator(struct bch_fs *c, struct closure *cl) in bch2_wait_on_allocator()