Lines Matching refs:bch_fs
14 static inline bool bch2_dev_bucket_exists(struct bch_fs *c, struct bpos pos) in bch2_dev_bucket_exists()
246 int bch2_alloc_v1_validate(struct bch_fs *, struct bkey_s_c,
248 int bch2_alloc_v2_validate(struct bch_fs *, struct bkey_s_c,
250 int bch2_alloc_v3_validate(struct bch_fs *, struct bkey_s_c,
252 int bch2_alloc_v4_validate(struct bch_fs *, struct bkey_s_c,
255 void bch2_alloc_to_text(struct printbuf *, struct bch_fs *, struct bkey_s_c);
286 int bch2_bucket_gens_validate(struct bch_fs *, struct bkey_s_c,
288 void bch2_bucket_gens_to_text(struct printbuf *, struct bch_fs *, struct bkey_s_c);
295 int bch2_bucket_gens_init(struct bch_fs *);
304 int bch2_alloc_read(struct bch_fs *);
314 int bch2_check_alloc_info(struct bch_fs *);
315 int bch2_check_alloc_to_lru_refs(struct bch_fs *);
317 void bch2_do_discards(struct bch_fs *);
332 void bch2_do_invalidates(struct bch_fs *);
346 int bch2_dev_freespace_init(struct bch_fs *, struct bch_dev *, u64, u64);
347 int bch2_fs_freespace_init(struct bch_fs *);
348 int bch2_dev_remove_alloc(struct bch_fs *, struct bch_dev *);
350 void bch2_recalc_capacity(struct bch_fs *);
351 u64 bch2_min_rw_member_capacity(struct bch_fs *);
353 void bch2_dev_allocator_remove(struct bch_fs *, struct bch_dev *);
354 void bch2_dev_allocator_add(struct bch_fs *, struct bch_dev *);
359 void bch2_fs_allocator_background_init(struct bch_fs *);