Lines Matching refs:policy
9 #include "dm-cache-policy-internal.h"
10 #include "dm-cache-policy.h"
20 #define DM_MSG_PREFIX "cache-policy-smq"
798 struct dm_cache_policy policy;
863 * If this is set the policy will try and clean the whole cache
1352 * Public interface, via the policy struct. See dm-cache-policy.h for a
1358 return container_of(p, struct smq_policy, policy);
1648 * smq has no config values, but the old mq policy did. To avoid breaking
1649 * software we continue to accept these configurables for the mq policy,
1665 DMWARN("tunable '%s' no longer has any effect, mq policy is now an alias for smq", key);
1687 /* Init the policy plugin interface function pointers. */
1690 mq->policy.destroy = smq_destroy;
1691 mq->policy.lookup = smq_lookup;
1692 mq->policy.lookup_with_work = smq_lookup_with_work;
1693 mq->policy.get_background_work = smq_get_background_work;
1694 mq->policy.complete_background_work = smq_complete_background_work;
1695 mq->policy.set_dirty = smq_set_dirty;
1696 mq->policy.clear_dirty = smq_clear_dirty;
1697 mq->policy.load_mapping = smq_load_mapping;
1698 mq->policy.invalidate_mapping = smq_invalidate_mapping;
1699 mq->policy.get_hint = smq_get_hint;
1700 mq->policy.residency = smq_residency;
1701 mq->policy.tick = smq_tick;
1702 mq->policy.allow_migrations = smq_allow_migrations;
1705 mq->policy.set_config_value = mq_set_config_value;
1706 mq->policy.emit_config_values = mq_emit_config_values;
1822 return &mq->policy;
1952 MODULE_DESCRIPTION("smq cache policy");