Home
last modified time | relevance | path

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

/Linux-v5.4/drivers/md/
Ddm-cache-policy.h39 struct dm_cache_policy { struct
43 void (*destroy)(struct dm_cache_policy *p); argument
56 int (*lookup)(struct dm_cache_policy *p, dm_oblock_t oblock, dm_cblock_t *cblock, argument
68 int (*lookup_with_work)(struct dm_cache_policy *p, argument
77 int (*get_background_work)(struct dm_cache_policy *p, bool idle, argument
84 void (*complete_background_work)(struct dm_cache_policy *p, argument
88 void (*set_dirty)(struct dm_cache_policy *p, dm_cblock_t cblock); argument
89 void (*clear_dirty)(struct dm_cache_policy *p, dm_cblock_t cblock); argument
95 int (*load_mapping)(struct dm_cache_policy *p, dm_oblock_t oblock, argument
103 int (*invalidate_mapping)(struct dm_cache_policy *p, dm_cblock_t cblock); argument
[all …]
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()
21 static inline int policy_lookup_with_work(struct dm_cache_policy *p, in policy_lookup_with_work()
34 static inline int policy_get_background_work(struct dm_cache_policy *p, in policy_get_background_work()
40 static inline void policy_complete_background_work(struct dm_cache_policy *p, in policy_complete_background_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()
57 static inline int policy_load_mapping(struct dm_cache_policy *p, in policy_load_mapping()
64 static inline int policy_invalidate_mapping(struct dm_cache_policy *p, in policy_invalidate_mapping()
70 static inline uint32_t policy_get_hint(struct dm_cache_policy *p, in policy_get_hint()
76 static inline dm_cblock_t policy_residency(struct dm_cache_policy *p) in policy_residency()
[all …]
Ddm-cache-policy.c111 struct dm_cache_policy *dm_cache_policy_create(const char *name, in dm_cache_policy_create()
116 struct dm_cache_policy *p = NULL; in dm_cache_policy_create()
136 void dm_cache_policy_destroy(struct dm_cache_policy *p) in dm_cache_policy_destroy()
145 const char *dm_cache_policy_get_name(struct dm_cache_policy *p) in dm_cache_policy_get_name()
157 const unsigned *dm_cache_policy_get_version(struct dm_cache_policy *p) in dm_cache_policy_get_version()
165 size_t dm_cache_policy_get_hint_size(struct dm_cache_policy *p) in dm_cache_policy_get_hint_size()
Ddm-cache-policy-smq.c795 struct dm_cache_policy policy;
1345 static struct smq_policy *to_smq_policy(struct dm_cache_policy *p) in to_smq_policy()
1350 static void smq_destroy(struct dm_cache_policy *p) in smq_destroy()
1400 static int smq_lookup(struct dm_cache_policy *p, dm_oblock_t oblock, dm_cblock_t *cblock, in smq_lookup()
1417 static int smq_lookup_with_work(struct dm_cache_policy *p, in smq_lookup_with_work()
1434 static int smq_get_background_work(struct dm_cache_policy *p, bool idle, in smq_get_background_work()
1504 static void smq_complete_background_work(struct dm_cache_policy *p, in smq_complete_background_work()
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()
1555 static int smq_load_mapping(struct dm_cache_policy *p, in smq_load_mapping()
[all …]
Ddm-cache-metadata.h94 struct dm_cache_policy *policy,
138 int dm_cache_write_hints(struct dm_cache_metadata *cmd, struct dm_cache_policy *p);
Ddm-cache-metadata.c1282 struct dm_cache_policy *policy) in policy_unchanged()
1315 struct dm_cache_policy *policy) in hints_array_available()
1405 struct dm_cache_policy *policy, in __load_mappings()
1494 struct dm_cache_policy *policy, in dm_cache_load_mappings()
1693 struct dm_cache_policy *policy = context; in get_hint()
1705 static int write_hints(struct dm_cache_metadata *cmd, struct dm_cache_policy *policy) in write_hints()
1735 int dm_cache_write_hints(struct dm_cache_metadata *cmd, struct dm_cache_policy *policy) in dm_cache_write_hints()
Ddm-cache-target.c461 struct dm_cache_policy *policy;
2394 struct dm_cache_policy *p = dm_cache_policy_create(ca->policy_name, in create_cache_policy()