Searched refs:lfu_policy (Results 1 – 1 of 1) sorted by relevance
359 struct cache_lfu_policy_ *lfu_policy; in cache_lfu_policy_add_item() local363 lfu_policy = (struct cache_lfu_policy_ *)policy; in cache_lfu_policy_add_item()367 TAILQ_INSERT_HEAD(&(lfu_policy->groups[CACHELIB_MAX_FREQUENCY - 1]), in cache_lfu_policy_add_item()380 struct cache_lfu_policy_ *lfu_policy; in cache_lfu_policy_update_item() local385 lfu_policy = (struct cache_lfu_policy_ *)policy; in cache_lfu_policy_update_item()408 TAILQ_REMOVE(&(lfu_policy->groups[lfu_item->frequency]), lfu_item, in cache_lfu_policy_update_item()411 TAILQ_INSERT_HEAD(&(lfu_policy->groups[index]), lfu_item, entries); in cache_lfu_policy_update_item()420 struct cache_lfu_policy_ *lfu_policy; in cache_lfu_policy_remove_item() local424 lfu_policy = (struct cache_lfu_policy_ *)policy; in cache_lfu_policy_remove_item()427 TAILQ_REMOVE(&(lfu_policy->groups[lfu_item->frequency]), lfu_item, in cache_lfu_policy_remove_item()[all …]