Lines Matching defs:ops
31 if (b->ops->key_dump)
32 b->ops->key_dump(b, k);
37 bkey_cmp(k, b->ops->is_extents ?
60 if (b->ops->is_extents)
74 if (b->ops->is_extents) {
116 bkey_cmp(k, iter->b->ops->is_extents ?
347 void bch_btree_keys_init(struct btree_keys *b, const struct btree_keys_ops *ops,
350 b->ops = ops;
842 if (!b->ops->key_merge)
854 return b->ops->key_merge(b, l, r);
886 BUG_ON(b->ops->is_extents && !KEY_SIZE(k));
893 if (b->ops->is_extents)
900 if (b->ops->insert_fixup(b, k, &iter, replace_key))
906 bkey_cmp(k, b->ops->is_extents ? &START_KEY(m) : m) > 0) {
1207 heap_sift(iter, i, b->ops->sort_cmp);
1210 if (b->ops->sort_fixup && fixup)
1211 k = b->ops->sort_fixup(iter, &tmp.k);
1216 k = __bch_btree_iter_next(iter, b->ops->sort_cmp);