Lines Matching refs:bkey_cmp
42 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()
396 if (bkey_cmp(insert, k) < 0 && in bch_extent_insert_fixup()
397 bkey_cmp(&START_KEY(insert), &START_KEY(k)) > 0) { in bch_extent_insert_fixup()
439 if (bkey_cmp(insert, k) < 0) { in bch_extent_insert_fixup()
442 if (bkey_cmp(&START_KEY(insert), &START_KEY(k)) > 0) in bch_extent_insert_fixup()
446 bkey_cmp(&START_KEY(insert), &START_KEY(k)) <= 0) { in bch_extent_insert_fixup()