From fc06ef92a0c15bf883023866b0e2f6d652842908 Mon Sep 17 00:00:00 2001 From: Adam Rutkowski Date: Sat, 26 Jun 2021 18:44:47 +0200 Subject: [PATCH] Remove obsolete wrapper for lru_rm_cline Signed-off-by: Adam Rutkowski --- src/utils/utils_cache_line.c | 2 +- src/utils/utils_cache_line.h | 16 ++-------------- 2 files changed, 3 insertions(+), 15 deletions(-) diff --git a/src/utils/utils_cache_line.c b/src/utils/utils_cache_line.c index 8be264e..879c0fc 100644 --- a/src/utils/utils_cache_line.c +++ b/src/utils/utils_cache_line.c @@ -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); } } diff --git a/src/utils/utils_cache_line.h b/src/utils/utils_cache_line.h index ec9510b..30581c1 100644 --- a/src/utils/utils_cache_line.h +++ b/src/utils/utils_cache_line.h @@ -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 */