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()
36 struct open_bucket *bch2_bucket_alloc(struct bch_fs *, struct bch_dev *,
40 static inline void ob_push(struct bch_fs *c, struct open_buckets *obs, in ob_push()
54 static inline struct open_bucket *ec_open_bucket(struct bch_fs *c, in ec_open_bucket()
67 void bch2_open_bucket_write_error(struct bch_fs *,
70 void __bch2_open_bucket_put(struct bch_fs *, struct open_bucket *);
72 static inline void bch2_open_bucket_put(struct bch_fs *c, struct open_bucket *ob) in bch2_open_bucket_put()
78 static inline void bch2_open_buckets_put(struct bch_fs *c, in bch2_open_buckets_put()
89 static inline void bch2_alloc_sectors_done_inlined(struct bch_fs *c, struct write_point *wp) in bch2_alloc_sectors_done_inlined()
104 static inline void bch2_open_bucket_get(struct bch_fs *c, in bch2_open_bucket_get()
118 static inline open_bucket_idx_t *open_bucket_hashslot(struct bch_fs *c, in open_bucket_hashslot()
126 static inline bool bch2_bucket_is_open(struct bch_fs *c, unsigned dev, u64 bucket) in bch2_bucket_is_open()
142 static inline bool bch2_bucket_is_open_safe(struct bch_fs *c, unsigned dev, u64 bucket) in bch2_bucket_is_open_safe()
173 struct bch_extent_ptr bch2_ob_ptr(struct bch_fs *, struct open_bucket *);
180 bch2_alloc_sectors_append_ptrs_inlined(struct bch_fs *c, struct write_point *wp, in bch2_alloc_sectors_append_ptrs_inlined()
206 void bch2_alloc_sectors_append_ptrs(struct bch_fs *, struct write_point *,
208 void bch2_alloc_sectors_done(struct bch_fs *, struct write_point *);
210 void bch2_open_buckets_stop(struct bch_fs *c, struct bch_dev *, bool);
222 void bch2_fs_allocator_foreground_init(struct bch_fs *);
224 void bch2_open_bucket_to_text(struct printbuf *, struct bch_fs *, struct open_bucket *);
225 void bch2_open_buckets_to_text(struct printbuf *, struct bch_fs *, struct bch_dev *);
226 void bch2_open_buckets_partial_to_text(struct printbuf *, struct bch_fs *);
228 void bch2_write_points_to_text(struct printbuf *, struct bch_fs *);
230 void bch2_fs_alloc_debug_to_text(struct printbuf *, struct bch_fs *);
233 void __bch2_wait_on_allocator(struct bch_fs *, struct closure *);
234 static inline void bch2_wait_on_allocator(struct bch_fs *c, struct closure *cl) in bch2_wait_on_allocator()