Lines Matching refs:btree
116 struct btree { struct
128 struct btree *parent; argument
150 static inline bool btree_node_ ## flag(struct btree *b) \ argument
153 static inline void set_btree_node_ ## flag(struct btree *b) \
166 static inline struct btree_write *btree_current_write(struct btree *b) in btree_current_write()
171 static inline struct btree_write *btree_prev_write(struct btree *b) in btree_prev_write()
176 static inline struct bset *btree_bset_first(struct btree *b) in btree_bset_first()
181 static inline struct bset *btree_bset_last(struct btree *b) in btree_bset_last()
186 static inline unsigned bset_block_offset(struct btree *b, struct bset *i) in bset_block_offset()
225 static inline void rw_lock(bool w, struct btree *b, int level) in rw_lock()
233 static inline void rw_unlock(bool w, struct btree *b) in rw_unlock()
240 void bch_btree_node_read_done(struct btree *);
241 void __bch_btree_node_write(struct btree *, struct closure *);
242 void bch_btree_node_write(struct btree *, struct closure *);
244 void bch_btree_set_root(struct btree *);
245 struct btree *__bch_btree_node_alloc(struct cache_set *, struct btree_op *,
246 int, bool, struct btree *);
247 struct btree *bch_btree_node_get(struct cache_set *, struct btree_op *,
248 struct bkey *, int, bool, struct btree *);
250 int bch_btree_insert_check_key(struct btree *, struct btree_op *,
275 typedef int (btree_map_nodes_fn)(struct btree_op *, struct btree *);
293 typedef int (btree_map_keys_fn)(struct btree_op *, struct btree *,