Home
last modified time | relevance | path

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

/linux-6.6.21/drivers/md/
Ddm-cache-policy.h40 struct dm_cache_policy { struct
44 void (*destroy)(struct dm_cache_policy *p); argument
57 int (*lookup)(struct dm_cache_policy *p, dm_oblock_t oblock, dm_cblock_t *cblock, argument
69 int (*lookup_with_work)(struct dm_cache_policy *p, argument
78 int (*get_background_work)(struct dm_cache_policy *p, bool idle, argument
85 void (*complete_background_work)(struct dm_cache_policy *p, argument
89 void (*set_dirty)(struct dm_cache_policy *p, dm_cblock_t cblock); argument
90 void (*clear_dirty)(struct dm_cache_policy *p, dm_cblock_t cblock); argument
96 int (*load_mapping)(struct dm_cache_policy *p, dm_oblock_t oblock, argument
104 int (*invalidate_mapping)(struct dm_cache_policy *p, dm_cblock_t cblock); argument
[all …]
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()
22 static inline int policy_lookup_with_work(struct dm_cache_policy *p, in policy_lookup_with_work()
35 static inline int policy_get_background_work(struct dm_cache_policy *p, in policy_get_background_work()
41 static inline void policy_complete_background_work(struct dm_cache_policy *p, in policy_complete_background_work()
48 static inline void policy_set_dirty(struct dm_cache_policy *p, dm_cblock_t cblock) in policy_set_dirty()
53 static inline void policy_clear_dirty(struct dm_cache_policy *p, dm_cblock_t cblock) in policy_clear_dirty()
58 static inline int policy_load_mapping(struct dm_cache_policy *p, in policy_load_mapping()
65 static inline int policy_invalidate_mapping(struct dm_cache_policy *p, in policy_invalidate_mapping()
71 static inline uint32_t policy_get_hint(struct dm_cache_policy *p, in policy_get_hint()
77 static inline dm_cblock_t policy_residency(struct dm_cache_policy *p) in policy_residency()
[all …]
Ddm-cache-policy.c112 struct dm_cache_policy *dm_cache_policy_create(const char *name, in dm_cache_policy_create()
117 struct dm_cache_policy *p = NULL; in dm_cache_policy_create()
137 void dm_cache_policy_destroy(struct dm_cache_policy *p) in dm_cache_policy_destroy()
146 const char *dm_cache_policy_get_name(struct dm_cache_policy *p) in dm_cache_policy_get_name()
158 const unsigned int *dm_cache_policy_get_version(struct dm_cache_policy *p) in dm_cache_policy_get_version()
166 size_t dm_cache_policy_get_hint_size(struct dm_cache_policy *p) in dm_cache_policy_get_hint_size()
Ddm-cache-policy-smq.c798 struct dm_cache_policy policy;
1356 static struct smq_policy *to_smq_policy(struct dm_cache_policy *p) in to_smq_policy()
1361 static void smq_destroy(struct dm_cache_policy *p) in smq_destroy()
1411 static int smq_lookup(struct dm_cache_policy *p, dm_oblock_t oblock, dm_cblock_t *cblock, in smq_lookup()
1428 static int smq_lookup_with_work(struct dm_cache_policy *p, in smq_lookup_with_work()
1445 static int smq_get_background_work(struct dm_cache_policy *p, bool idle, in smq_get_background_work()
1515 static void smq_complete_background_work(struct dm_cache_policy *p, in smq_complete_background_work()
1541 static void smq_set_dirty(struct dm_cache_policy *p, dm_cblock_t cblock) in smq_set_dirty()
1551 static void smq_clear_dirty(struct dm_cache_policy *p, dm_cblock_t cblock) in smq_clear_dirty()
1566 static int smq_load_mapping(struct dm_cache_policy *p, in smq_load_mapping()
[all …]
Ddm-cache-metadata.h95 struct dm_cache_policy *policy,
139 int dm_cache_write_hints(struct dm_cache_metadata *cmd, struct dm_cache_policy *p);
Ddm-cache-metadata.c1295 struct dm_cache_policy *policy) in policy_unchanged()
1328 struct dm_cache_policy *policy) in hints_array_available()
1418 struct dm_cache_policy *policy, in __load_mappings()
1507 struct dm_cache_policy *policy, in dm_cache_load_mappings()
1706 struct dm_cache_policy *policy = context; in get_hint()
1718 static int write_hints(struct dm_cache_metadata *cmd, struct dm_cache_policy *policy) in write_hints()
1748 int dm_cache_write_hints(struct dm_cache_metadata *cmd, struct dm_cache_policy *policy) in dm_cache_write_hints()
Ddm-cache-target.c383 struct dm_cache_policy *policy;
2320 struct dm_cache_policy *p = dm_cache_policy_create(ca->policy_name, in create_cache_policy()