From 4deaa1e1338ddc912a4ef57b934e60326b162758 Mon Sep 17 00:00:00 2001 From: Michal Mielewczyk Date: Fri, 8 Oct 2021 09:19:49 +0200 Subject: [PATCH] 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 --- src/mngt/ocf_mngt_cache.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/mngt/ocf_mngt_cache.c b/src/mngt/ocf_mngt_cache.c index 5ba132d..1c42c1e 100644 --- a/src/mngt/ocf_mngt_cache.c +++ b/src/mngt/ocf_mngt_cache.c @@ -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); }