Renamve eviction_idx to lru_idx

Signed-off-by: Adam Rutkowski <adam.j.rutkowski@intel.com>
This commit is contained in:
Adam Rutkowski 2021-06-26 18:46:06 +02:00
parent fc06ef92a0
commit 1a5d20156e
2 changed files with 4 additions and 4 deletions

View File

@ -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);

View File

@ -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;