Home
last modified time | relevance | path

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

/drivers/md/bcache/
Dbset.h189 : (int64_t) KEY_OFFSET(l) - (int64_t) KEY_OFFSET(r); in bkey_cmp()
214 SET_KEY_OFFSET(dest, KEY_OFFSET(src)); in bkey_copy_key()
Dbtree.c122 if ((level && KEY_OFFSET(k)) || !level) in bkey_put()
1698 KEY_OFFSET(k) > KEY_OFFSET(&op->replace)) in fix_overlapping_extents()
1717 sectors_found = KEY_OFFSET(k) - KEY_START(insert); in fix_overlapping_extents()
1787 SET_KEY_OFFSET(insert, KEY_OFFSET(insert) - in fix_overlapping_extents()
1805 BUG_ON(!b->level && !KEY_OFFSET(k)); in btree_insert_key()
1817 if (KEY_OFFSET(&search)) in btree_insert_key()
1818 SET_KEY_OFFSET(&search, KEY_OFFSET(&search) - 1); in btree_insert_key()
1859 if (b->level && !KEY_OFFSET(k)) in btree_insert_key()
2210 bio->bi_sector < KEY_OFFSET(k)) { in submit_partial_cache_hit()
2215 KEY_OFFSET(k) - bio->bi_sector); in submit_partial_cache_hit()
[all …]
Dbset.c85 if (!level && KEY_SIZE(k) > KEY_OFFSET(k)) in __bch_ptr_invalid()
196 len = KEY_OFFSET(k) - KEY_OFFSET(where); in __bch_cut_front()
218 len = KEY_OFFSET(where) - KEY_START(k); in __bch_cut_back()
258 SET_KEY_OFFSET(l, KEY_OFFSET(l) + USHRT_MAX - KEY_SIZE(l)); in bch_bkey_try_merge()
272 SET_KEY_OFFSET(l, KEY_OFFSET(l) + KEY_SIZE(r)); in bch_bkey_try_merge()
Dbcache.h980 static inline uint64_t KEY_OFFSET(const struct bkey *k) in KEY_OFFSET() function
1053 #define KEY_START(k) (KEY_OFFSET(k) - KEY_SIZE(k))
Dwriteback.c334 dc->last_read = KEY_OFFSET(&w->key); in read_dirty()
Ddebug.c58 p("%llu:%llu len %llu -> [", KEY_INODE(k), KEY_OFFSET(k), KEY_SIZE(k)); in bch_pkey()
Drequest.c392 SET_KEY_OFFSET(k, KEY_OFFSET(k) + sectors); in bch_alloc_sectors()