Lines Matching defs:btree_op
25 * struct btree_op is a central interface to the btree code. It's used for
49 * time, so there's a lock, implemented by a pointer to the btree_op closure -
68 * though - but it takes a refcount on the closure in struct btree_op you passed
81 * This is specified with the lock field in struct btree_op; lock = 0 means we
212 struct btree_op {
241 static inline void bch_btree_op_init(struct btree_op *op, int write_lock_level)
243 memset(op, 0, sizeof(struct btree_op));
268 struct btree *__bch_btree_node_alloc(struct cache_set *c, struct btree_op *op,
271 struct btree *bch_btree_node_get(struct cache_set *c, struct btree_op *op,
275 int bch_btree_insert_check_key(struct btree *b, struct btree_op *op,
326 * @op: pointer to struct btree_op
346 * @op: pointer to struct btree_op
377 typedef int (btree_map_nodes_fn)(struct btree_op *b_op, struct btree *b);
378 int __bch_btree_map_nodes(struct btree_op *op, struct cache_set *c,
381 static inline int bch_btree_map_nodes(struct btree_op *op, struct cache_set *c,
387 static inline int bch_btree_map_leaf_nodes(struct btree_op *op,
395 typedef int (btree_map_keys_fn)(struct btree_op *op, struct btree *b,
397 int bch_btree_map_keys(struct btree_op *op, struct cache_set *c,
399 int bch_btree_map_keys_recurse(struct btree *b, struct btree_op *op,