Home
last modified time | relevance | path

Searched refs:bkey_cmp (Results 1 – 7 of 7) sorted by relevance

/linux-6.6.21/drivers/md/bcache/
Dextents.c42 int64_t c = bkey_cmp(l.k, r.k); in bch_key_sort_cmp()
88 if (!bkey_cmp(k, &ZERO_KEY)) in bch_ptr_status()
210 if (!bkey_cmp(k, &ZERO_KEY) || in bch_btree_ptr_bad()
261 int64_t c = bkey_cmp(&START_KEY(l.k), &START_KEY(r.k)); in bch_extent_sort_cmp()
276 if (bkey_cmp(top->k, &START_KEY(i->k)) <= 0) in bch_extent_sort_fixup()
286 if (bkey_cmp(top->k, i->k) >= 0) in bch_extent_sort_fixup()
294 BUG_ON(!bkey_cmp(&START_KEY(top->k), &START_KEY(i->k))); in bch_extent_sort_fixup()
296 if (bkey_cmp(i->k, top->k) < 0) { in bch_extent_sort_fixup()
342 if (bkey_cmp(&START_KEY(k), insert) >= 0) { in bch_extent_insert_fixup()
349 if (bkey_cmp(k, &START_KEY(insert)) <= 0) in bch_extent_insert_fixup()
[all …]
Dbset.c37 bkey_cmp(k, b->ops->is_extents ? in bch_dump_bset()
76 if (p && bkey_cmp(&START_KEY(p), &START_KEY(k)) > 0) in __bch_check_keys()
83 if (p && bkey_cmp(p, &START_KEY(k)) > 0) in __bch_check_keys()
90 if (p && !bkey_cmp(p, k)) in __bch_check_keys()
97 if (p && bkey_cmp(p, &b->key) > 0) in __bch_check_keys()
116 bkey_cmp(k, iter->b->ops->is_extents ? in bch_btree_iter_next_check()
201 if (bkey_cmp(where, &START_KEY(k)) <= 0) in __bch_cut_front()
204 if (bkey_cmp(where, k) < 0) in __bch_cut_front()
221 if (bkey_cmp(where, k) >= 0) in __bch_cut_back()
226 if (bkey_cmp(where, &START_KEY(k)) > 0) in __bch_cut_back()
[all …]
Dbtree.c219 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()
[all …]
Dbset.h413 static __always_inline int64_t bkey_cmp(const struct bkey *l, in bkey_cmp() function
428 BUG_ON(bkey_cmp(where, k) > 0); in bch_cut_front()
434 BUG_ON(bkey_cmp(where, &START_KEY(k)) < 0); in bch_cut_back()
Dwriteback.c527 if ((nk != 0) && bkey_cmp(&keys[nk-1]->key, in read_dirty()
713 if (bkey_cmp(&buf->last_scanned, &start) < 0 || in refill_dirty()
714 bkey_cmp(&buf->last_scanned, &end) > 0) in refill_dirty()
726 if (bkey_cmp(&buf->last_scanned, &end) < 0) in refill_dirty()
736 return bkey_cmp(&buf->last_scanned, &start_pos) >= 0; in refill_dirty()
Dalloc.c576 else if (!bkey_cmp(&ret->key, search)) in pick_data_bucket()
Drequest.c520 if (bkey_cmp(k, &KEY(s->iop.inode, bio->bi_iter.bi_sector, 0)) <= 0) in cache_lookup_fn()