Searched refs:bkey_cmp (Results 1 – 7 of 7) sorted by relevance
/drivers/md/bcache/ |
D | extents.c | 41 int64_t c = bkey_cmp(l.k, r.k); in bch_key_sort_cmp() 87 if (!bkey_cmp(k, &ZERO_KEY)) in bch_ptr_status() 208 if (!bkey_cmp(k, &ZERO_KEY) || in bch_btree_ptr_bad() 259 int64_t c = bkey_cmp(&START_KEY(l.k), &START_KEY(r.k)); in bch_extent_sort_cmp() 274 if (bkey_cmp(top->k, &START_KEY(i->k)) <= 0) in bch_extent_sort_fixup() 284 if (bkey_cmp(top->k, i->k) >= 0) in bch_extent_sort_fixup() 292 BUG_ON(!bkey_cmp(&START_KEY(top->k), &START_KEY(i->k))); in bch_extent_sort_fixup() 294 if (bkey_cmp(i->k, top->k) < 0) { in bch_extent_sort_fixup() 339 if (bkey_cmp(&START_KEY(k), insert) >= 0) { in bch_extent_insert_fixup() 346 if (bkey_cmp(k, &START_KEY(insert)) <= 0) in bch_extent_insert_fixup() [all …]
|
D | bset.c | 35 bkey_cmp(k, b->ops->is_extents ? in bch_dump_bset() 74 if (p && bkey_cmp(&START_KEY(p), &START_KEY(k)) > 0) in __bch_check_keys() 81 if (p && bkey_cmp(p, &START_KEY(k)) > 0) in __bch_check_keys() 88 if (p && !bkey_cmp(p, k)) in __bch_check_keys() 95 if (p && bkey_cmp(p, &b->key) > 0) in __bch_check_keys() 114 bkey_cmp(k, iter->b->ops->is_extents ? in bch_btree_iter_next_check() 197 if (bkey_cmp(where, &START_KEY(k)) <= 0) in __bch_cut_front() 200 if (bkey_cmp(where, k) < 0) in __bch_cut_front() 217 if (bkey_cmp(where, k) >= 0) in __bch_cut_back() 222 if (bkey_cmp(where, &START_KEY(k)) > 0) in __bch_cut_back() [all …]
|
D | bset.h | 396 static __always_inline int64_t bkey_cmp(const struct bkey *l, in bkey_cmp() function 411 BUG_ON(bkey_cmp(where, k) > 0); in bch_cut_front() 417 BUG_ON(bkey_cmp(where, &START_KEY(k)) < 0); in bch_cut_back()
|
D | btree.c | 264 bkey_cmp(&b->key, &b->keys.set[0].end) < 0) in bch_btree_node_read_done() 1192 if (!bkey_cmp(k, &ZERO_KEY)) in __bch_btree_mark_key() 1245 if (level && bkey_cmp(k, &ZERO_KEY)) in bch_initial_mark_key() 1281 bkey_cmp(&b->key, &t->end) < 0, in btree_gc_mark_node() 1466 if (!bkey_cmp(k, &ZERO_KEY)) in btree_gc_coalesce() 1907 BUG_ON(bkey_cmp(k, &b->key) > 0); in btree_insert_key() 1947 if (bkey_cmp(k, &b->key) <= 0) { in bch_btree_insert_keys() 1953 } else if (bkey_cmp(&START_KEY(k), &b->key) < 0) { in bch_btree_insert_keys() 2357 if (bkey_cmp(&l->key, &START_KEY(&r->key)) <= 0) in keybuf_cmp() 2359 if (bkey_cmp(&START_KEY(&l->key), &r->key) >= 0) in keybuf_cmp() [all …]
|
D | writeback.c | 395 if (bkey_cmp(&buf->last_scanned, &start) < 0 || in refill_dirty() 396 bkey_cmp(&buf->last_scanned, &end) > 0) in refill_dirty() 408 if (bkey_cmp(&buf->last_scanned, &end) < 0) in refill_dirty() 418 return bkey_cmp(&buf->last_scanned, &start_pos) >= 0; in refill_dirty()
|
D | alloc.c | 554 else if (!bkey_cmp(&ret->key, search)) in pick_data_bucket()
|
D | request.c | 514 if (bkey_cmp(k, &KEY(s->iop.inode, bio->bi_iter.bi_sector, 0)) <= 0) in cache_lookup_fn()
|