Lines Matching refs:bch_fs
13 void bch2_recalc_btree_reserve(struct bch_fs *);
15 void bch2_btree_node_to_freelist(struct bch_fs *, struct btree *);
24 void bch2_node_pin(struct bch_fs *, struct btree *);
25 void bch2_btree_cache_unpin(struct bch_fs *);
33 struct btree *__bch2_btree_node_mem_alloc(struct bch_fs *);
48 void bch2_fs_btree_cache_exit(struct bch_fs *);
49 int bch2_fs_btree_cache_init(struct bch_fs *);
97 static inline size_t btree_max_u64s(const struct bch_fs *c) in btree_max_u64s()
102 static inline size_t btree_sectors(const struct bch_fs *c) in btree_sectors()
107 static inline unsigned btree_blocks(const struct bch_fs *c) in btree_blocks()
119 static inline unsigned btree_id_nr_alive(struct bch_fs *c) in btree_id_nr_alive()
124 static inline struct btree_root *bch2_btree_id_root(struct bch_fs *c, unsigned id) in bch2_btree_id_root()
136 static inline struct btree *btree_node_root(struct bch_fs *c, struct btree *b) in btree_node_root()
144 void bch2_btree_pos_to_text(struct printbuf *, struct bch_fs *, const struct btree *);
145 void bch2_btree_node_to_text(struct printbuf *, struct bch_fs *, const struct btree *);