fix cacheline reset in passive metadata update
Signed-off-by: Adam Rutkowski <adam.j.rutkowski@intel.com>
This commit is contained in:
parent
63f5ba88c9
commit
d0b00817f3
@ -32,8 +32,12 @@ static inline void _reset_cline(ocf_cache_t cache, ocf_cache_line_t cline)
|
|||||||
ocf_lru_clean_cline(cache, &cache->user_parts[PARTITION_DEFAULT].part,
|
ocf_lru_clean_cline(cache, &cache->user_parts[PARTITION_DEFAULT].part,
|
||||||
cline);
|
cline);
|
||||||
|
|
||||||
|
metadata_init_status_bits(cache, cline);
|
||||||
|
|
||||||
ocf_lru_rm_cline(cache, cline);
|
ocf_lru_rm_cline(cache, cline);
|
||||||
ocf_metadata_set_partition_id(cache, cline, PARTITION_FREELIST);
|
ocf_metadata_set_partition_id(cache, cline, PARTITION_FREELIST);
|
||||||
|
|
||||||
|
ocf_metadata_set_core_info(cache, cline, OCF_CORE_MAX, ULLONG_MAX);
|
||||||
}
|
}
|
||||||
|
|
||||||
static inline void remove_from_freelist(ocf_cache_t cache,
|
static inline void remove_from_freelist(ocf_cache_t cache,
|
||||||
|
Loading…
Reference in New Issue
Block a user