Renamve eviction_idx to lru_idx
Signed-off-by: Adam Rutkowski <adam.j.rutkowski@intel.com>
This commit is contained in:
parent
fc06ef92a0
commit
1a5d20156e
@ -632,7 +632,7 @@ void ocf_lru_clean(ocf_cache_t cache, struct ocf_user_part *user_part,
|
|||||||
}
|
}
|
||||||
|
|
||||||
ctx->cache = cache;
|
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);
|
lock_idx = ocf_metadata_concurrency_next_idx(io_queue);
|
||||||
ocf_metadata_start_shared_access(&cache->metadata.lock, lock_idx);
|
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);
|
ENV_BUG_ON(req->part_id == PARTITION_FREELIST);
|
||||||
dst_part = &cache->user_parts[req->part_id].part;
|
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);
|
lru_iter_eviction_init(&iter, cache, src_part, lru_idx, req);
|
||||||
|
|
||||||
|
@ -18,8 +18,8 @@ struct ocf_queue {
|
|||||||
/* per-queue free running global metadata lock index */
|
/* per-queue free running global metadata lock index */
|
||||||
unsigned lock_idx;
|
unsigned lock_idx;
|
||||||
|
|
||||||
/* per-queue free running eviction list index */
|
/* per-queue free running lru list index */
|
||||||
unsigned eviction_idx;
|
unsigned lru_idx;
|
||||||
|
|
||||||
struct ocf_seq_cutoff *seq_cutoff;
|
struct ocf_seq_cutoff *seq_cutoff;
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user