Lines Matching refs:bkey_cmp
219 bkey_cmp(&b->key, &b->keys.set[0].end) < 0) in bch_btree_node_read_done()
571 return -cmp_int(a->level, b->level) ?: bkey_cmp(&a->key, &b->key); in btree_lock_cmp_fn()
1235 if (!bkey_cmp(k, &ZERO_KEY)) in __bch_btree_mark_key()
1288 if (level && bkey_cmp(k, &ZERO_KEY)) in bch_initial_mark_key()
1329 bkey_cmp(&b->key, &t->end) < 0, in btree_gc_mark_node()
1515 if (!bkey_cmp(k, &ZERO_KEY)) in btree_gc_coalesce()
2160 BUG_ON(bkey_cmp(k, &b->key) > 0); in btree_insert_key()
2200 if (bkey_cmp(k, &b->key) <= 0) { in bch_btree_insert_keys()
2206 } else if (bkey_cmp(&START_KEY(k), &b->key) < 0) { in bch_btree_insert_keys()
2611 if (bkey_cmp(&l->key, &START_KEY(&r->key)) <= 0) in keybuf_cmp()
2613 if (bkey_cmp(&START_KEY(&l->key), &r->key) >= 0) in keybuf_cmp()
2621 return clamp_t(int64_t, bkey_cmp(&l->key, &r->key), -1, 1); in keybuf_nonoverlapping_cmp()
2639 if (bkey_cmp(k, refill->end) > 0) { in refill_keybuf_fn()
2737 if (bkey_cmp(end, &buf->start) <= 0 || in bch_keybuf_check_overlapping()
2738 bkey_cmp(start, &buf->end) >= 0) in bch_keybuf_check_overlapping()
2744 while (w && bkey_cmp(&START_KEY(&w->key), end) < 0) { in bch_keybuf_check_overlapping()
2788 if (bkey_cmp(&buf->last_scanned, end) >= 0) { in bch_keybuf_next_rescan()