/linux-5.19.10/drivers/md/ |
D | dm-cache-policy-internal.h | 15 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()
|
D | dm-cache-background-tracker.c | 90 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()
|
D | dm-cache-policy.h | 31 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,
|
D | dm-cache-policy-smq.c | 48 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() 1188 work.oblock = e->oblock; in queue_writeback() [all …]
|
D | dm-cache-metadata.h | 87 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,
|
D | dm-cache-metadata.c | 1249 dm_cblock_t cblock, dm_oblock_t oblock) in __insert() argument 1252 __le64 value = pack_value(oblock, M_VALID); in __insert() 1265 dm_cblock_t cblock, dm_oblock_t oblock) in dm_cache_insert_mapping() argument 1270 r = __insert(cmd, cblock, oblock); in dm_cache_insert_mapping() 1339 dm_oblock_t oblock; in __load_mapping_v1() local 1345 unpack_value(mapping, &oblock, &flags); in __load_mapping_v1() 1355 r = fn(context, oblock, to_cblock(cb), dirty, in __load_mapping_v1() 1381 dm_oblock_t oblock; in __load_mapping_v2() local 1387 unpack_value(mapping, &oblock, &flags); in __load_mapping_v2() 1397 r = fn(context, oblock, to_cblock(cb), dirty, in __load_mapping_v2() [all …]
|
D | dm-cache-target.c | 573 static bool bio_detain_shared(struct cache *cache, dm_oblock_t oblock, struct bio *bio) in bio_detain_shared() argument 578 dm_oblock_t end = to_oblock(from_oblock(oblock) + 1ULL); in bio_detain_shared() 583 build_key(oblock, end, &key); in bio_detain_shared() 664 static dm_dblock_t oblock_to_dblock(struct cache *cache, dm_oblock_t oblock) in oblock_to_dblock() argument 666 return to_dblock(block_div(from_oblock(oblock), in oblock_to_dblock() 748 dm_oblock_t oblock) in remap_to_origin_clear_discard() argument 754 clear_discard(cache, oblock_to_dblock(cache, oblock)); in remap_to_origin_clear_discard() 758 dm_oblock_t oblock, dm_cblock_t cblock) in remap_to_cache_dirty() argument 764 clear_discard(cache, oblock_to_dblock(cache, oblock)); in remap_to_cache_dirty() 820 dm_oblock_t oblock, dm_cblock_t cblock) in remap_to_origin_and_cache() argument [all …]
|
D | dm-cache-background-tracker.h | 42 dm_oblock_t oblock);
|