Lines Matching refs:btree_bset_first
109 return ((void *) btree_bset_first(b)) + b->written * block_bytes(b->c->cache); in write_block()
151 struct bset *i = btree_bset_first(b); in bch_btree_node_read_done()
414 BUG_ON(btree_bset_first(b)->seq != i->seq); in __bch_btree_node_write()
1381 struct bset *n1 = btree_bset_first(new_nodes[i]); in btree_gc_coalesce()
1382 struct bset *n2 = btree_bset_first(new_nodes[i - 1]); in btree_gc_coalesce()
1452 BUG_ON(btree_bset_first(new_nodes[0])->keys); in btree_gc_coalesce()
2232 split = set_blocks(btree_bset_first(n1), in btree_split()
2238 trace_bcache_btree_node_split(b, btree_bset_first(n1)->keys); in btree_split()
2260 while (keys < (btree_bset_first(n1)->keys * 3) / 5) in btree_split()
2261 keys += bkey_u64s(bset_bkey_idx(btree_bset_first(n1), in btree_split()
2265 bset_bkey_idx(btree_bset_first(n1), keys)); in btree_split()
2266 keys += bkey_u64s(bset_bkey_idx(btree_bset_first(n1), keys)); in btree_split()
2268 btree_bset_first(n2)->keys = btree_bset_first(n1)->keys - keys; in btree_split()
2269 btree_bset_first(n1)->keys = keys; in btree_split()
2271 memcpy(btree_bset_first(n2)->start, in btree_split()
2272 bset_bkey_last(btree_bset_first(n1)), in btree_split()
2273 btree_bset_first(n2)->keys * sizeof(uint64_t)); in btree_split()
2282 trace_bcache_btree_node_compact(b, btree_bset_first(n1)->keys); in btree_split()