Lines Matching refs:bch_fs
16 static inline bool bch2_dev_bucket_exists(struct bch_fs *c, struct bpos pos) in bch2_dev_bucket_exists()
248 int bch2_alloc_v1_validate(struct bch_fs *, struct bkey_s_c, enum bch_validate_flags);
249 int bch2_alloc_v2_validate(struct bch_fs *, struct bkey_s_c, enum bch_validate_flags);
250 int bch2_alloc_v3_validate(struct bch_fs *, struct bkey_s_c, enum bch_validate_flags);
251 int bch2_alloc_v4_validate(struct bch_fs *, struct bkey_s_c, enum bch_validate_flags);
253 void bch2_alloc_to_text(struct printbuf *, struct bch_fs *, struct bkey_s_c);
284 int bch2_bucket_gens_validate(struct bch_fs *, struct bkey_s_c,
286 void bch2_bucket_gens_to_text(struct printbuf *, struct bch_fs *, struct bkey_s_c);
293 int bch2_bucket_gens_init(struct bch_fs *);
302 int bch2_alloc_read(struct bch_fs *);
310 int bch2_check_alloc_info(struct bch_fs *);
311 int bch2_check_alloc_to_lru_refs(struct bch_fs *);
313 void bch2_do_discards(struct bch_fs *);
328 void bch2_do_invalidates(struct bch_fs *);
342 int bch2_dev_freespace_init(struct bch_fs *, struct bch_dev *, u64, u64);
343 int bch2_fs_freespace_init(struct bch_fs *);
344 int bch2_dev_remove_alloc(struct bch_fs *, struct bch_dev *);
346 void bch2_recalc_capacity(struct bch_fs *);
347 u64 bch2_min_rw_member_capacity(struct bch_fs *);
349 void bch2_dev_allocator_remove(struct bch_fs *, struct bch_dev *);
350 void bch2_dev_allocator_add(struct bch_fs *, struct bch_dev *);
355 void bch2_fs_allocator_background_init(struct bch_fs *);