Lines Matching refs:k

236 static inline bool bkey_written(struct btree_keys *b, struct bkey *k)  in bkey_written()  argument
238 return !b->last_set_unwritten || k < b->set[b->nsets].data->start; in bkey_written()
251 #define __set_bytes(i, k) (sizeof(*(i)) + (k) * sizeof(uint64_t)) argument
254 #define __set_blocks(i, k, block_bytes) \ argument
255 DIV_ROUND_UP(__set_bytes(i, k), block_bytes)
311 struct bkey *k, *end; member
338 #define for_each_key_filter(b, k, iter, filter) \ argument
340 ((k) = bch_btree_iter_next_filter((iter), (b), filter));)
342 #define for_each_key(b, k, iter) \ argument
344 ((k) = bch_btree_iter_next(iter));)
390 static inline void bkey_init(struct bkey *k) in bkey_init() argument
392 *k = ZERO_KEY; in bkey_init()
408 static inline bool bch_cut_front(const struct bkey *where, struct bkey *k) in bch_cut_front() argument
410 BUG_ON(bkey_cmp(where, k) > 0); in bch_cut_front()
411 return __bch_cut_front(where, k); in bch_cut_front()
414 static inline bool bch_cut_back(const struct bkey *where, struct bkey *k) in bch_cut_back() argument
416 BUG_ON(bkey_cmp(where, &START_KEY(k)) < 0); in bch_cut_back()
417 return __bch_cut_back(where, k); in bch_cut_back()
435 static inline bool bch_ptr_invalid(struct btree_keys *b, const struct bkey *k) in bch_ptr_invalid() argument
437 return b->ops->key_invalid(b, k); in bch_ptr_invalid()
440 static inline bool bch_ptr_bad(struct btree_keys *b, const struct bkey *k) in bch_ptr_bad() argument
442 return b->ops->key_bad(b, k); in bch_ptr_bad()
446 size_t size, const struct bkey *k) in bch_bkey_to_text() argument
448 return b->ops->key_to_text(buf, size, k); in bch_bkey_to_text()
481 static inline void bch_keylist_init_single(struct keylist *l, struct bkey *k) in bch_keylist_init_single() argument
483 l->keys = k; in bch_keylist_init_single()
484 l->top = bkey_next(k); in bch_keylist_init_single()
492 static inline void bch_keylist_add(struct keylist *l, struct bkey *k) in bch_keylist_add() argument
494 bkey_copy(l->top, k); in bch_keylist_add()