Home
last modified time | relevance | path

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

/kernel/linux/linux-5.10/drivers/md/
Ddm-cache-policy.h32 dm_cblock_t cblock;
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,
88 void (*set_dirty)(struct dm_cache_policy *p, dm_cblock_t cblock);
89 void (*clear_dirty)(struct dm_cache_policy *p, dm_cblock_t cblock);
96 dm_cblock_t cblock, bool dirty,
103 int (*invalidate_mapping)(struct dm_cache_policy *p, dm_cblock_t cblock);
109 uint32_t (*get_hint)(struct dm_cache_policy *p, dm_cblock_t cblock);
114 dm_cblock_t (*residency)(struct dm_cache_policy *p);
176 struct dm_cache_policy *(*create)(dm_cblock_t cache_size,
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()
22 dm_oblock_t oblock, dm_cblock_t *cblock, in policy_lookup_with_work()
47 static inline void policy_set_dirty(struct dm_cache_policy *p, dm_cblock_t cblock) in policy_set_dirty()
52 static inline void policy_clear_dirty(struct dm_cache_policy *p, dm_cblock_t cblock) in policy_clear_dirty()
58 dm_oblock_t oblock, dm_cblock_t cblock, in policy_load_mapping()
65 dm_cblock_t cblock) in policy_invalidate_mapping()
71 dm_cblock_t cblock) in policy_get_hint()
76 static inline dm_cblock_t policy_residency(struct dm_cache_policy *p) in policy_residency()
142 struct dm_cache_policy *dm_cache_policy_create(const char *name, dm_cblock_t cache_size,
Ddm-cache-block-types.h21 typedef uint32_t __bitwise dm_cblock_t; typedef
34 static inline dm_cblock_t to_cblock(uint32_t b) in to_cblock()
36 return (__force dm_cblock_t) b; in to_cblock()
39 static inline uint32_t from_cblock(dm_cblock_t b) in from_cblock()
Ddm-cache-metadata.h72 int dm_cache_resize(struct dm_cache_metadata *cmd, dm_cblock_t new_cache_size);
73 int dm_cache_size(struct dm_cache_metadata *cmd, dm_cblock_t *result);
86 int dm_cache_remove_mapping(struct dm_cache_metadata *cmd, dm_cblock_t cblock);
87 int dm_cache_insert_mapping(struct dm_cache_metadata *cmd, dm_cblock_t cblock, dm_oblock_t oblock);
91 dm_cblock_t cblock, bool dirty,
Ddm-cache-policy-smq.c799 dm_cblock_t cache_size;
986 static dm_cblock_t infer_cblock(struct smq_policy *mq, struct entry *e) in infer_cblock()
1365 static int __lookup(struct smq_policy *mq, dm_oblock_t oblock, dm_cblock_t *cblock, in __lookup()
1400 static int smq_lookup(struct dm_cache_policy *p, dm_oblock_t oblock, dm_cblock_t *cblock, in smq_lookup()
1418 dm_oblock_t oblock, dm_cblock_t *cblock, in smq_lookup_with_work()
1517 static void __smq_set_clear_dirty(struct smq_policy *mq, dm_cblock_t cblock, bool set) in __smq_set_clear_dirty()
1530 static void smq_set_dirty(struct dm_cache_policy *p, dm_cblock_t cblock) in smq_set_dirty()
1540 static void smq_clear_dirty(struct dm_cache_policy *p, dm_cblock_t cblock) in smq_clear_dirty()
1550 static unsigned random_level(dm_cblock_t cblock) in random_level()
1556 dm_oblock_t oblock, dm_cblock_t cblock, in smq_load_mapping()
[all …]
Ddm-cache-metadata.c127 dm_cblock_t cache_blocks;
887 static int block_clean_combined_dirty(struct dm_cache_metadata *cmd, dm_cblock_t b, in block_clean_combined_dirty()
906 dm_cblock_t begin, dm_cblock_t end, in blocks_are_clean_combined_dirty()
932 dm_cblock_t begin, dm_cblock_t end, in blocks_are_clean_separate_dirty()
989 dm_cblock_t begin, dm_cblock_t end, in blocks_are_unmapped_or_clean()
1048 int dm_cache_resize(struct dm_cache_metadata *cmd, dm_cblock_t new_cache_size) in dm_cache_resize()
1215 int dm_cache_size(struct dm_cache_metadata *cmd, dm_cblock_t *result) in dm_cache_size()
1224 static int __remove(struct dm_cache_metadata *cmd, dm_cblock_t cblock) in __remove()
1239 int dm_cache_remove_mapping(struct dm_cache_metadata *cmd, dm_cblock_t cblock) in dm_cache_remove_mapping()
1251 dm_cblock_t cblock, dm_oblock_t oblock) in __insert()
[all …]
Ddm-cache-target.c402 dm_cblock_t cache_size;
496 dm_cblock_t invalidate_cblock;
674 static bool is_dirty(struct cache *cache, dm_cblock_t b) in is_dirty()
679 static void set_dirty(struct cache *cache, dm_cblock_t cblock) in set_dirty()
691 static void force_set_dirty(struct cache *cache, dm_cblock_t cblock) in force_set_dirty()
698 static void force_clear_dirty(struct cache *cache, dm_cblock_t cblock) in force_clear_dirty()
787 dm_cblock_t cblock) in remap_to_cache()
835 dm_oblock_t oblock, dm_cblock_t cblock) in remap_to_cache_dirty()
897 dm_oblock_t oblock, dm_cblock_t cblock) in remap_to_origin_and_cache()
1239 dm_cblock_t cblock = op->cblock; in mg_complete()
[all …]
Ddm-cache-policy.c112 dm_cblock_t cache_size, in dm_cache_policy_create()