Remove obsolete wrapper for lru_rm_cline

Signed-off-by: Adam Rutkowski <adam.j.rutkowski@intel.com>
This commit is contained in:
Adam Rutkowski 2021-06-26 18:44:47 +02:00
parent 847f5f1174
commit fc06ef92a0
2 changed files with 3 additions and 15 deletions

View File

@ -45,7 +45,7 @@ static void __set_cache_line_invalid(struct ocf_cache *cache, uint8_t start_bit,
*/
if (!is_valid && !ocf_cache_line_are_waiters(
ocf_cache_line_concurrency(cache), line)) {
ocf_purge_eviction_policy(cache, line);
ocf_lru_rm_cline(cache, line);
ocf_metadata_remove_cache_line(cache, line);
}
}

View File

@ -170,18 +170,6 @@ static inline void ocf_purge_cleaning_policy(struct ocf_cache *cache,
cleaning_policy_ops[clean_type].purge_cache_block(cache, line);
}
/**
* @brief Remove cache line from eviction policy
*
* @param cache - cache instance
* @param line - cache line to be removed
*/
static inline void ocf_purge_eviction_policy(struct ocf_cache *cache,
ocf_cache_line_t line)
{
ocf_lru_rm_cline(cache, line);
}
/**
* @brief Set cache line clean and invalid and remove form lists
*
@ -206,8 +194,8 @@ static inline void _ocf_purge_cache_line_sec(struct ocf_cache *cache,
}
/**
* @brief Purge cache line (remove completely, from collision, move to free
* partition, from cleaning policy and eviction policy)
* @brief Purge cache line (remove from collision and cleaning policy,
* move to free LRU list).
*
* @param req - OCF request to purge
*/