Reset all the status bits during recovery

Make sure all the invalid cachelines have reset status bits. This allows to
recognize invalid cachelines easily during populate.

Signed-off-by: Michal Mielewczyk <michal.mielewczyk@intel.com>
This commit is contained in:
Michal Mielewczyk 2021-10-08 09:19:49 +02:00
parent fc7c901c8b
commit 4deaa1e133

View File

@ -488,7 +488,7 @@ static void _recovery_reset_cline_metadata(struct ocf_cache *cache,
{
ocf_metadata_set_core_info(cache, cline, OCF_CORE_MAX, ULLONG_MAX);
metadata_clear_valid(cache, cline);
metadata_init_status_bits(cache, cline);
ocf_cleaning_init_cache_block(cache, cline);
}