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 *,
33 static inline struct bch_dev *ob_dev(struct bch_fs *c, struct open_bucket *ob) in ob_dev()
38 struct open_bucket *bch2_bucket_alloc(struct bch_fs *, struct bch_dev *,
42 static inline void ob_push(struct bch_fs *c, struct open_buckets *obs, in ob_push()
56 static inline struct open_bucket *ec_open_bucket(struct bch_fs *c, in ec_open_bucket()
69 void bch2_open_bucket_write_error(struct bch_fs *,
72 void __bch2_open_bucket_put(struct bch_fs *, struct open_bucket *);
74 static inline void bch2_open_bucket_put(struct bch_fs *c, struct open_bucket *ob) in bch2_open_bucket_put()
80 static inline void bch2_open_buckets_put(struct bch_fs *c, in bch2_open_buckets_put()
91 static inline void bch2_alloc_sectors_done_inlined(struct bch_fs *c, struct write_point *wp) in bch2_alloc_sectors_done_inlined()
106 static inline void bch2_open_bucket_get(struct bch_fs *c, in bch2_open_bucket_get()
120 static inline open_bucket_idx_t *open_bucket_hashslot(struct bch_fs *c, in open_bucket_hashslot()
128 static inline bool bch2_bucket_is_open(struct bch_fs *c, unsigned dev, u64 bucket) in bch2_bucket_is_open()
144 static inline bool bch2_bucket_is_open_safe(struct bch_fs *c, unsigned dev, u64 bucket) in bch2_bucket_is_open_safe()
175 struct bch_extent_ptr bch2_ob_ptr(struct bch_fs *, struct open_bucket *);
182 bch2_alloc_sectors_append_ptrs_inlined(struct bch_fs *c, struct write_point *wp, in bch2_alloc_sectors_append_ptrs_inlined()
208 void bch2_alloc_sectors_append_ptrs(struct bch_fs *, struct write_point *,
210 void bch2_alloc_sectors_done(struct bch_fs *, struct write_point *);
212 void bch2_open_buckets_stop(struct bch_fs *c, struct bch_dev *, bool);
224 void bch2_fs_allocator_foreground_init(struct bch_fs *);
226 void bch2_open_bucket_to_text(struct printbuf *, struct bch_fs *, struct open_bucket *);
227 void bch2_open_buckets_to_text(struct printbuf *, struct bch_fs *, struct bch_dev *);
228 void bch2_open_buckets_partial_to_text(struct printbuf *, struct bch_fs *);
230 void bch2_write_points_to_text(struct printbuf *, struct bch_fs *);
232 void bch2_fs_alloc_debug_to_text(struct printbuf *, struct bch_fs *);
235 void __bch2_wait_on_allocator(struct bch_fs *, struct closure *);
236 static inline void bch2_wait_on_allocator(struct bch_fs *c, struct closure *cl) in bch2_wait_on_allocator()