Home
last modified time | relevance | path

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

/Linux-v5.4/drivers/md/
Ddm-cache-policy-internal.h15 static inline int policy_lookup(struct dm_cache_policy *p, dm_oblock_t oblock, dm_cblock_t *cblock, in policy_lookup() argument
18 return p->lookup(p, oblock, cblock, data_dir, fast_copy, background_queued); in policy_lookup()
22 dm_oblock_t oblock, dm_cblock_t *cblock, in policy_lookup_with_work() argument
28 return p->lookup(p, oblock, cblock, data_dir, fast_copy, NULL); in policy_lookup_with_work()
31 return p->lookup_with_work(p, oblock, cblock, data_dir, fast_copy, work); in policy_lookup_with_work()
58 dm_oblock_t oblock, dm_cblock_t cblock, in policy_load_mapping() argument
61 return p->load_mapping(p, oblock, cblock, dirty, hint, hint_valid); in policy_load_mapping()
Ddm-cache-background-tracker.c90 cmp = cmp_oblock(w->work.oblock, nw->work.oblock); in __insert_pending()
109 dm_oblock_t oblock) in __find_pending() argument
118 cmp = cmp_oblock(w->work.oblock, oblock); in __find_pending()
243 dm_oblock_t oblock) in btracker_promotion_already_present() argument
245 return __find_pending(b, oblock) != NULL; in btracker_promotion_already_present()
Ddm-cache-policy.h31 dm_oblock_t oblock; member
56 int (*lookup)(struct dm_cache_policy *p, dm_oblock_t oblock, dm_cblock_t *cblock,
69 dm_oblock_t oblock, dm_cblock_t *cblock,
95 int (*load_mapping)(struct dm_cache_policy *p, dm_oblock_t oblock,
Ddm-cache-policy-smq.c48 dm_oblock_t oblock; member
624 unsigned h = hash_64(from_oblock(e->oblock), ht->hash_bits); in h_insert()
628 static struct entry *__h_lookup(struct smq_hash_table *ht, unsigned h, dm_oblock_t oblock, in __h_lookup() argument
635 if (e->oblock == oblock) in __h_lookup()
656 static struct entry *h_lookup(struct smq_hash_table *ht, dm_oblock_t oblock) in h_lookup() argument
659 unsigned h = hash_64(from_oblock(oblock), ht->hash_bits); in h_lookup()
661 e = __h_lookup(ht, h, oblock, &prev); in h_lookup()
676 unsigned h = hash_64(from_oblock(e->oblock), ht->hash_bits); in h_remove()
683 e = __h_lookup(ht, h, e->oblock, &prev); in h_remove()
1186 work.oblock = e->oblock; in queue_writeback()
[all …]
Ddm-cache-metadata.h87 int dm_cache_insert_mapping(struct dm_cache_metadata *cmd, dm_cblock_t cblock, dm_oblock_t oblock);
90 typedef int (*load_mapping_fn)(void *context, dm_oblock_t oblock,
Ddm-cache-metadata.c1245 dm_cblock_t cblock, dm_oblock_t oblock) in __insert() argument
1248 __le64 value = pack_value(oblock, M_VALID); in __insert()
1261 dm_cblock_t cblock, dm_oblock_t oblock) in dm_cache_insert_mapping() argument
1266 r = __insert(cmd, cblock, oblock); in dm_cache_insert_mapping()
1335 dm_oblock_t oblock; in __load_mapping_v1() local
1341 unpack_value(mapping, &oblock, &flags); in __load_mapping_v1()
1351 r = fn(context, oblock, to_cblock(cb), dirty, in __load_mapping_v1()
1377 dm_oblock_t oblock; in __load_mapping_v2() local
1383 unpack_value(mapping, &oblock, &flags); in __load_mapping_v2()
1393 r = fn(context, oblock, to_cblock(cb), dirty, in __load_mapping_v2()
[all …]
Ddm-cache-target.c656 static bool bio_detain_shared(struct cache *cache, dm_oblock_t oblock, struct bio *bio) in bio_detain_shared() argument
661 dm_oblock_t end = to_oblock(from_oblock(oblock) + 1ULL); in bio_detain_shared()
666 build_key(oblock, end, &key); in bio_detain_shared()
751 static dm_dblock_t oblock_to_dblock(struct cache *cache, dm_oblock_t oblock) in oblock_to_dblock() argument
753 return to_dblock(block_div(from_oblock(oblock), in oblock_to_dblock()
844 dm_oblock_t oblock, bool bio_has_pbd) in __remap_to_origin_clear_discard() argument
850 clear_discard(cache, oblock_to_dblock(cache, oblock)); in __remap_to_origin_clear_discard()
854 dm_oblock_t oblock) in remap_to_origin_clear_discard() argument
857 __remap_to_origin_clear_discard(cache, bio, oblock, true); in remap_to_origin_clear_discard()
861 dm_oblock_t oblock, dm_cblock_t cblock) in remap_to_cache_dirty() argument
[all …]
Ddm-cache-background-tracker.h42 dm_oblock_t oblock);