Lines Matching defs:b

102 #define insert_lock(s, b)	((b)->level <= (s)->lock)  argument
105 static inline struct bset *write_block(struct btree *b) in write_block()
110 static void bch_btree_init_next(struct btree *b) in bch_btree_init_next()
137 static uint64_t btree_csum_set(struct btree *b, struct bset *i) in btree_csum_set()
146 void bch_btree_node_read_done(struct btree *b) in bch_btree_node_read_done()
241 static void bch_btree_node_read(struct btree *b) in bch_btree_node_read()
279 static void btree_complete_write(struct btree *b, struct btree_write *w) in btree_complete_write()
296 struct btree *b = container_of(cl, struct btree, io); in btree_node_write_unlock() local
303 struct btree *b = container_of(cl, struct btree, io); in __btree_node_write_done() local
318 struct btree *b = container_of(cl, struct btree, io); in btree_node_write_done() local
327 struct btree *b = container_of(cl, struct btree, io); in btree_node_write_endio() local
336 static void do_btree_node_write(struct btree *b) in do_btree_node_write()
401 void __bch_btree_node_write(struct btree *b, struct closure *parent) in __bch_btree_node_write()
432 void bch_btree_node_write(struct btree *b, struct closure *parent) in bch_btree_node_write()
450 static void bch_btree_node_write_sync(struct btree *b) in bch_btree_node_write_sync()
465 struct btree *b = container_of(to_delayed_work(w), struct btree, work); in btree_node_write_work() local
473 static void bch_btree_leaf_dirty(struct btree *b, atomic_t *journal_ref) in bch_btree_leaf_dirty()
522 static void mca_data_free(struct btree *b) in mca_data_free()
532 static void mca_bucket_free(struct btree *b) in mca_bucket_free()
546 static void mca_data_alloc(struct btree *b, struct bkey *k, gfp_t gfp) in mca_data_alloc()
567 struct btree *b = kzalloc(sizeof(struct btree), gfp); in mca_bucket_alloc() local
585 static int mca_reap(struct btree *b, unsigned int min_order, bool flush) in mca_reap()
648 struct btree *b, *t; in bch_mca_scan() local
727 struct btree *b; in bch_btree_cache_free() local
829 struct btree *b; in mca_find() local
861 struct btree *b; in mca_cannibalize() local
899 struct btree *b; in mca_alloc() local
981 struct btree *b; in bch_btree_node_get() local
1035 struct btree *b; in btree_node_prefetch() local
1050 static void btree_node_free(struct btree *b) in btree_node_free()
1091 struct btree *b = ERR_PTR(-EAGAIN); in __bch_btree_node_alloc() local
1134 static struct btree *btree_node_alloc_replacement(struct btree *b, in btree_node_alloc_replacement()
1149 static void make_btree_freeing_key(struct btree *b, struct bkey *k) in make_btree_freeing_key()
1168 static int btree_check_reserve(struct btree *b, struct btree_op *op) in btree_check_reserve()
1243 #define btree_mark_key(b, k) __bch_btree_mark_key(b->c, b->level, k) argument
1252 struct bucket *b = PTR_BUCKET(c, k, i); in bch_initial_mark_key() local
1270 static bool btree_gc_mark_node(struct btree *b, struct gc_stat *gc) in btree_gc_mark_node()
1315 struct btree *b; member
1324 static int btree_gc_coalesce(struct btree *b, struct btree_op *op, in btree_gc_coalesce()
1495 static int btree_gc_rewrite_node(struct btree *b, struct btree_op *op, in btree_gc_rewrite_node()
1531 static unsigned int btree_gc_count_keys(struct btree *b) in btree_gc_count_keys()
1569 static int btree_gc_recurse(struct btree *b, struct btree_op *op, in btree_gc_recurse()
1659 static int bch_btree_gc_root(struct btree *b, struct btree_op *op, in bch_btree_gc_root()
1697 struct bucket *b; in btree_gc_start() local
1721 struct bucket *b; in bch_btree_gc_finish() local
1871 static int bch_btree_check_recurse(struct btree *b, struct btree_op *op) in bch_btree_check_recurse()
2080 struct bucket *b; in bch_initial_gc_finish() local
2115 static bool btree_insert_key(struct btree *b, struct bkey *k, in btree_insert_key()
2134 static size_t insert_u64s_remaining(struct btree *b) in insert_u64s_remaining()
2147 static bool bch_btree_insert_keys(struct btree *b, struct btree_op *op, in bch_btree_insert_keys()
2189 static int btree_split(struct btree *b, struct btree_op *op, in btree_split()
2323 static int bch_btree_insert_node(struct btree *b, struct btree_op *op, in bch_btree_insert_node()
2379 int bch_btree_insert_check_key(struct btree *b, struct btree_op *op, in bch_btree_insert_check_key()
2424 static int btree_insert_fn(struct btree_op *b_op, struct btree *b) in btree_insert_fn()
2471 void bch_btree_set_root(struct btree *b) in bch_btree_set_root()
2497 static int bch_btree_map_nodes_recurse(struct btree *b, struct btree_op *op, in bch_btree_map_nodes_recurse()
2532 int bch_btree_map_keys_recurse(struct btree *b, struct btree_op *op, in bch_btree_map_keys_recurse()
2592 static int refill_keybuf_fn(struct btree_op *op, struct btree *b, in refill_keybuf_fn()