Lines Matching refs:dm_cache_policy
16 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()
82 static inline void policy_tick(struct dm_cache_policy *p, bool can_block) in policy_tick()
88 static inline int policy_emit_config_values(struct dm_cache_policy *p, char *result, in policy_emit_config_values()
101 static inline int policy_set_config_value(struct dm_cache_policy *p, in policy_set_config_value()
107 static inline void policy_allow_migrations(struct dm_cache_policy *p, bool allow) in policy_allow_migrations()
146 struct dm_cache_policy *dm_cache_policy_create(const char *name, dm_cblock_t cache_size,
154 void dm_cache_policy_destroy(struct dm_cache_policy *p);
159 const char *dm_cache_policy_get_name(struct dm_cache_policy *p);
161 const unsigned int *dm_cache_policy_get_version(struct dm_cache_policy *p);
163 size_t dm_cache_policy_get_hint_size(struct dm_cache_policy *p);