Lines Matching refs:policy
8 #include "dm-cache-policy-internal.h"
9 #include "dm-cache-policy.h"
19 #define DM_MSG_PREFIX "cache-policy-smq"
795 struct dm_cache_policy policy;
860 * If this is set the policy will try and clean the whole cache
1347 * Public interface, via the policy struct. See dm-cache-policy.h for a
1353 return container_of(p, struct smq_policy, policy);
1642 * smq has no config values, but the old mq policy did. To avoid breaking
1643 * software we continue to accept these configurables for the mq policy,
1659 DMWARN("tunable '%s' no longer has any effect, mq policy is now an alias for smq", key);
1681 /* Init the policy plugin interface function pointers. */
1684 mq->policy.destroy = smq_destroy;
1685 mq->policy.lookup = smq_lookup;
1686 mq->policy.lookup_with_work = smq_lookup_with_work;
1687 mq->policy.get_background_work = smq_get_background_work;
1688 mq->policy.complete_background_work = smq_complete_background_work;
1689 mq->policy.set_dirty = smq_set_dirty;
1690 mq->policy.clear_dirty = smq_clear_dirty;
1691 mq->policy.load_mapping = smq_load_mapping;
1692 mq->policy.invalidate_mapping = smq_invalidate_mapping;
1693 mq->policy.get_hint = smq_get_hint;
1694 mq->policy.residency = smq_residency;
1695 mq->policy.tick = smq_tick;
1696 mq->policy.allow_migrations = smq_allow_migrations;
1699 mq->policy.set_config_value = mq_set_config_value;
1700 mq->policy.emit_config_values = mq_emit_config_values;
1816 return &mq->policy;
1946 MODULE_DESCRIPTION("smq cache policy");