From 1a5d20156eece2a47e5fb1943cb4f3c441fdc5e8 Mon Sep 17 00:00:00 2001 From: Adam Rutkowski Date: Sat, 26 Jun 2021 18:46:06 +0200 Subject: [PATCH] Renamve eviction_idx to lru_idx Signed-off-by: Adam Rutkowski --- src/ocf_lru.c | 4 ++-- src/ocf_queue_priv.h | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/ocf_lru.c b/src/ocf_lru.c index 387303c..3462a9c 100644 --- a/src/ocf_lru.c +++ b/src/ocf_lru.c @@ -632,7 +632,7 @@ void ocf_lru_clean(ocf_cache_t cache, struct ocf_user_part *user_part, } ctx->cache = cache; - lru_idx = io_queue->eviction_idx++ % OCF_NUM_LRU_LISTS; + lru_idx = io_queue->lru_idx++ % OCF_NUM_LRU_LISTS; lock_idx = ocf_metadata_concurrency_next_idx(io_queue); ocf_metadata_start_shared_access(&cache->metadata.lock, lock_idx); @@ -724,7 +724,7 @@ uint32_t ocf_lru_req_clines(struct ocf_request *req, ENV_BUG_ON(req->part_id == PARTITION_FREELIST); dst_part = &cache->user_parts[req->part_id].part; - lru_idx = req->io_queue->eviction_idx++ % OCF_NUM_LRU_LISTS; + lru_idx = req->io_queue->lru_idx++ % OCF_NUM_LRU_LISTS; lru_iter_eviction_init(&iter, cache, src_part, lru_idx, req); diff --git a/src/ocf_queue_priv.h b/src/ocf_queue_priv.h index ad27571..def5d08 100644 --- a/src/ocf_queue_priv.h +++ b/src/ocf_queue_priv.h @@ -18,8 +18,8 @@ struct ocf_queue { /* per-queue free running global metadata lock index */ unsigned lock_idx; - /* per-queue free running eviction list index */ - unsigned eviction_idx; + /* per-queue free running lru list index */ + unsigned lru_idx; struct ocf_seq_cutoff *seq_cutoff;