Lines Matching refs:smq_policy
794 struct smq_policy { struct
867 static struct entry *writeback_sentinel(struct smq_policy *mq, unsigned level) in writeback_sentinel() argument
872 static struct entry *demote_sentinel(struct smq_policy *mq, unsigned level) in demote_sentinel()
877 static void __update_writeback_sentinels(struct smq_policy *mq) in __update_writeback_sentinels()
890 static void __update_demote_sentinels(struct smq_policy *mq) in __update_demote_sentinels()
903 static void update_sentinels(struct smq_policy *mq) in update_sentinels()
918 static void __sentinels_init(struct smq_policy *mq) in __sentinels_init()
934 static void sentinels_init(struct smq_policy *mq) in sentinels_init()
950 static void del_queue(struct smq_policy *mq, struct entry *e) in del_queue()
955 static void push_queue(struct smq_policy *mq, struct entry *e) in push_queue()
964 static void push(struct smq_policy *mq, struct entry *e) in push()
971 static void push_queue_front(struct smq_policy *mq, struct entry *e) in push_queue_front()
979 static void push_front(struct smq_policy *mq, struct entry *e) in push_front()
986 static dm_cblock_t infer_cblock(struct smq_policy *mq, struct entry *e) in infer_cblock()
991 static void requeue(struct smq_policy *mq, struct entry *e) in requeue()
1011 static unsigned default_promote_level(struct smq_policy *mq) in default_promote_level()
1039 static void update_promote_levels(struct smq_policy *mq) in update_promote_levels()
1076 static void update_level_jump(struct smq_policy *mq) in update_level_jump()
1093 static void end_hotspot_period(struct smq_policy *mq) in end_hotspot_period()
1106 static void end_cache_period(struct smq_policy *mq) in end_cache_period()
1127 static unsigned percent_to_target(struct smq_policy *mq, unsigned p) in percent_to_target()
1132 static bool clean_target_met(struct smq_policy *mq, bool idle) in clean_target_met()
1151 static bool free_target_met(struct smq_policy *mq) in free_target_met()
1162 static void mark_pending(struct smq_policy *mq, struct entry *e) in mark_pending()
1170 static void clear_pending(struct smq_policy *mq, struct entry *e) in clear_pending()
1176 static void queue_writeback(struct smq_policy *mq, bool idle) in queue_writeback()
1199 static void queue_demotion(struct smq_policy *mq) in queue_demotion()
1228 static void queue_promotion(struct smq_policy *mq, dm_oblock_t oblock, in queue_promotion()
1282 static enum promote_result should_promote(struct smq_policy *mq, struct entry *hs_e, in should_promote()
1294 static dm_oblock_t to_hblock(struct smq_policy *mq, dm_oblock_t b) in to_hblock()
1301 static struct entry *update_hotspot_queue(struct smq_policy *mq, dm_oblock_t b) in update_hotspot_queue()
1347 static struct smq_policy *to_smq_policy(struct dm_cache_policy *p) in to_smq_policy()
1349 return container_of(p, struct smq_policy, policy); in to_smq_policy()
1354 struct smq_policy *mq = to_smq_policy(p); in smq_destroy()
1367 static int __lookup(struct smq_policy *mq, dm_oblock_t oblock, dm_cblock_t *cblock, in __lookup()
1408 struct smq_policy *mq = to_smq_policy(p); in smq_lookup()
1427 struct smq_policy *mq = to_smq_policy(p); in smq_lookup_with_work()
1441 struct smq_policy *mq = to_smq_policy(p); in smq_get_background_work()
1460 static void __complete_background_work(struct smq_policy *mq, in __complete_background_work()
1511 struct smq_policy *mq = to_smq_policy(p); in smq_complete_background_work()
1519 static void __smq_set_clear_dirty(struct smq_policy *mq, dm_cblock_t cblock, bool set) in __smq_set_clear_dirty()
1535 struct smq_policy *mq = to_smq_policy(p); in smq_set_dirty()
1544 struct smq_policy *mq = to_smq_policy(p); in smq_clear_dirty()
1561 struct smq_policy *mq = to_smq_policy(p); in smq_load_mapping()
1581 struct smq_policy *mq = to_smq_policy(p); in smq_invalidate_mapping()
1596 struct smq_policy *mq = to_smq_policy(p); in smq_get_hint()
1609 struct smq_policy *mq = to_smq_policy(p); in smq_residency()
1620 struct smq_policy *mq = to_smq_policy(p); in smq_tick()
1633 struct smq_policy *mq = to_smq_policy(p); in smq_allow_migrations()
1678 static void init_policy_functions(struct smq_policy *mq, bool mimic_mq) in init_policy_functions()
1730 struct smq_policy *mq = kzalloc(sizeof(*mq), GFP_KERNEL); in __smq_create()