Lines Matching refs:btree

13 int bch2_btree_node_check_topology(struct btree_trans *, struct btree *);
80 struct btree *b;
93 struct btree *b[BTREE_UPDATE_NODES_MAX];
108 struct btree *new_nodes[BTREE_UPDATE_NODES_MAX];
111 struct btree *old_nodes[BTREE_UPDATE_NODES_MAX];
132 struct btree *__bch2_btree_node_alloc_replacement(struct btree_update *,
134 struct btree *,
150 struct btree *b; in bch2_foreground_maybe_merge_sibling()
178 struct btree *, unsigned, unsigned);
186 struct btree *, unsigned);
188 void bch2_btree_node_rewrite_async(struct bch_fs *, struct btree *);
191 struct btree *, struct bkey_i *,
193 int bch2_btree_node_update_key_get_iter(struct btree_trans *, struct btree *,
196 void bch2_btree_set_root_for_read(struct bch_fs *, struct btree *);
202 struct btree *b) in btree_update_reserve_required()
217 static inline void btree_node_reset_sib_u64s(struct btree *b) in btree_node_reset_sib_u64s()
223 static inline void *btree_data_end(struct btree *b) in btree_data_end()
228 static inline struct bkey_packed *unwritten_whiteouts_start(struct btree *b) in unwritten_whiteouts_start()
233 static inline struct bkey_packed *unwritten_whiteouts_end(struct btree *b) in unwritten_whiteouts_end()
238 static inline void *write_block(struct btree *b) in write_block()
243 static inline bool __btree_addr_written(struct btree *b, void *p) in __btree_addr_written()
248 static inline bool bset_written(struct btree *b, struct bset *i) in bset_written()
253 static inline bool bkey_written(struct btree *b, struct bkey_packed *k) in bkey_written()
258 static inline ssize_t __bch2_btree_u64s_remaining(struct btree *b, void *end) in __bch2_btree_u64s_remaining()
270 static inline size_t bch2_btree_keys_u64s_remaining(struct btree *b) in bch2_btree_keys_u64s_remaining()
285 static inline unsigned btree_write_set_buffer(struct btree *b) in btree_write_set_buffer()
294 static inline struct btree_node_entry *want_new_bset(struct bch_fs *c, struct btree *b) in want_new_bset()
314 static inline void push_whiteout(struct btree *b, struct bpos pos) in push_whiteout()
338 static inline bool bch2_btree_node_insert_fits(struct btree *b, unsigned u64s) in bch2_btree_node_insert_fits()