Home
last modified time | relevance | path

Searched refs:oblock (Results 1 – 8 of 8) sorted by relevance

/linux-6.6.21/drivers/md/
Ddm-cache-policy-internal.h16 static inline int policy_lookup(struct dm_cache_policy *p, dm_oblock_t oblock, dm_cblock_t *cblock, in policy_lookup() argument
19 return p->lookup(p, oblock, cblock, data_dir, fast_copy, background_queued); in policy_lookup()
23 dm_oblock_t oblock, dm_cblock_t *cblock, in policy_lookup_with_work() argument
29 return p->lookup(p, oblock, cblock, data_dir, fast_copy, NULL); in policy_lookup_with_work()
32 return p->lookup_with_work(p, oblock, cblock, data_dir, fast_copy, work); in policy_lookup_with_work()
59 dm_oblock_t oblock, dm_cblock_t cblock, in policy_load_mapping() argument
62 return p->load_mapping(p, oblock, cblock, dirty, hint, hint_valid); in policy_load_mapping()
Ddm-cache-background-tracker.c99 cmp = cmp_oblock(w->work.oblock, nw->work.oblock); in __insert_pending()
118 dm_oblock_t oblock) in __find_pending() argument
127 cmp = cmp_oblock(w->work.oblock, oblock); in __find_pending()
252 dm_oblock_t oblock) in btracker_promotion_already_present() argument
254 return __find_pending(b, oblock) != NULL; in btracker_promotion_already_present()
Ddm-cache-policy.h32 dm_oblock_t oblock; member
57 int (*lookup)(struct dm_cache_policy *p, dm_oblock_t oblock, dm_cblock_t *cblock,
70 dm_oblock_t oblock, dm_cblock_t *cblock,
96 int (*load_mapping)(struct dm_cache_policy *p, dm_oblock_t oblock,
Ddm-cache-policy-smq.c49 dm_oblock_t oblock; member
626 unsigned int h = hash_64(from_oblock(e->oblock), ht->hash_bits); in h_insert()
631 static struct entry *__h_lookup(struct smq_hash_table *ht, unsigned int h, dm_oblock_t oblock, in __h_lookup() argument
638 if (e->oblock == oblock) in __h_lookup()
659 static struct entry *h_lookup(struct smq_hash_table *ht, dm_oblock_t oblock) in h_lookup() argument
662 unsigned int h = hash_64(from_oblock(oblock), ht->hash_bits); in h_lookup()
664 e = __h_lookup(ht, h, oblock, &prev); in h_lookup()
679 unsigned int h = hash_64(from_oblock(e->oblock), ht->hash_bits); in h_remove()
686 e = __h_lookup(ht, h, e->oblock, &prev); in h_remove()
1197 work.oblock = e->oblock; in queue_writeback()
[all …]
Ddm-cache-metadata.c1257 dm_cblock_t cblock, dm_oblock_t oblock) in __insert() argument
1260 __le64 value = pack_value(oblock, M_VALID); in __insert()
1274 dm_cblock_t cblock, dm_oblock_t oblock) in dm_cache_insert_mapping() argument
1279 r = __insert(cmd, cblock, oblock); in dm_cache_insert_mapping()
1348 dm_oblock_t oblock; in __load_mapping_v1() local
1354 unpack_value(mapping, &oblock, &flags); in __load_mapping_v1()
1364 r = fn(context, oblock, to_cblock(cb), dirty, in __load_mapping_v1()
1390 dm_oblock_t oblock; in __load_mapping_v2() local
1396 unpack_value(mapping, &oblock, &flags); in __load_mapping_v2()
1406 r = fn(context, oblock, to_cblock(cb), dirty, in __load_mapping_v2()
[all …]
Ddm-cache-metadata.h88 int dm_cache_insert_mapping(struct dm_cache_metadata *cmd, dm_cblock_t cblock, dm_oblock_t oblock);
91 typedef int (*load_mapping_fn)(void *context, dm_oblock_t oblock,
Ddm-cache-target.c577 static bool bio_detain_shared(struct cache *cache, dm_oblock_t oblock, struct bio *bio) in bio_detain_shared() argument
582 dm_oblock_t end = to_oblock(from_oblock(oblock) + 1ULL); in bio_detain_shared()
587 build_key(oblock, end, &key); in bio_detain_shared()
668 static dm_dblock_t oblock_to_dblock(struct cache *cache, dm_oblock_t oblock) in oblock_to_dblock() argument
670 return to_dblock(block_div(from_oblock(oblock), in oblock_to_dblock()
756 dm_oblock_t oblock) in remap_to_origin_clear_discard() argument
762 clear_discard(cache, oblock_to_dblock(cache, oblock)); in remap_to_origin_clear_discard()
766 dm_oblock_t oblock, dm_cblock_t cblock) in remap_to_cache_dirty() argument
772 clear_discard(cache, oblock_to_dblock(cache, oblock)); in remap_to_cache_dirty()
829 dm_oblock_t oblock, dm_cblock_t cblock) in remap_to_origin_and_cache() argument
[all …]
Ddm-cache-background-tracker.h77 dm_oblock_t oblock);