extra assertion in metadata passive update

Signed-off-by: Adam Rutkowski <adam.j.rutkowski@intel.com>
This commit is contained in:
Adam Rutkowski 2021-11-30 12:04:57 +01:00
parent d0b00817f3
commit b455a393dd

View File

@ -208,6 +208,9 @@ static void cleanup_old_mapping(ocf_cache_t cache, ocf_cache_line_t start,
if (!core)
continue;
ENV_BUG_ON(ocf_metadata_get_partition_id(cache, cline) !=
PARTITION_DEFAULT);
_dec_core_stats(core);
ocf_hb_cline_prot_lock_wr(&cache->metadata.lock, lock_idx, core_id,