remove stale references to eviction
Signed-off-by: Adam Rutkowski <adam.j.rutkowski@intel.com>
This commit is contained in:
@@ -30,31 +30,31 @@ struct ocf_user_part_config {
|
||||
|
||||
struct ocf_part_runtime {
|
||||
env_atomic curr_size;
|
||||
struct ocf_lru_part_meta lru[OCF_NUM_EVICTION_LISTS];
|
||||
struct ocf_lru_part_meta lru[OCF_NUM_LRU_LISTS];
|
||||
};
|
||||
|
||||
typedef bool ( *_lru_hash_locked_pfn)(struct ocf_request *req,
|
||||
ocf_core_id_t core_id, uint64_t core_line);
|
||||
|
||||
/* Iterator state, visiting all eviction lists within a partition
|
||||
/* Iterator state, visiting all lru lists within a partition
|
||||
in round robin order */
|
||||
struct ocf_lru_iter
|
||||
{
|
||||
/* per-partition cacheline iterator */
|
||||
ocf_cache_line_t curr_cline[OCF_NUM_EVICTION_LISTS];
|
||||
ocf_cache_line_t curr_cline[OCF_NUM_LRU_LISTS];
|
||||
/* cache object */
|
||||
ocf_cache_t cache;
|
||||
/* cacheline concurrency */
|
||||
struct ocf_alock *c;
|
||||
/* target partition */
|
||||
struct ocf_part *part;
|
||||
/* available (non-empty) eviction list bitmap rotated so that current
|
||||
@evp is on the most significant bit */
|
||||
unsigned long long next_avail_evp;
|
||||
/* number of available eviction lists */
|
||||
uint32_t num_avail_evps;
|
||||
/* current eviction list index */
|
||||
uint32_t evp;
|
||||
/* available (non-empty) lru list bitmap rotated so that current
|
||||
@lru_idx is on the most significant bit */
|
||||
unsigned long long next_avail_lru;
|
||||
/* number of available lru lists */
|
||||
uint32_t num_avail_lrus;
|
||||
/* current lru list index */
|
||||
uint32_t lru_idx;
|
||||
/* callback to determine whether given hash bucket is already
|
||||
* locked by the caller */
|
||||
_lru_hash_locked_pfn hash_locked;
|
||||
|
@@ -55,7 +55,7 @@ struct ocf_metadata_lock
|
||||
{
|
||||
struct ocf_metadata_global_lock global[OCF_NUM_GLOBAL_META_LOCKS];
|
||||
/*!< global metadata lock (GML) */
|
||||
env_rwlock eviction[OCF_NUM_EVICTION_LISTS]; /*!< Fast lock for eviction policy */
|
||||
env_rwlock lru[OCF_NUM_LRU_LISTS]; /*!< Fast locks for lru list */
|
||||
env_spinlock partition[OCF_USER_IO_CLASS_MAX]; /* partition lock */
|
||||
env_rwsem *hash; /*!< Hash bucket locks */
|
||||
env_rwsem *collision_pages; /*!< Collision table page locks */
|
||||
|
Reference in New Issue
Block a user