From 8cc71cc9cb22d2762ec0bef0d52c2e88fa629861 Mon Sep 17 00:00:00 2001 From: Robert Baldyga Date: Fri, 21 Jan 2022 21:27:08 +0100 Subject: [PATCH] Remove ocf_cleaning_init_cache_block() from metadata rebuild Cleaning policy initializaton initializes metadata for all cache lines anyway, so this step is not needed. Signed-off-by: Robert Baldyga --- src/mngt/ocf_mngt_cache.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/src/mngt/ocf_mngt_cache.c b/src/mngt/ocf_mngt_cache.c index 4910964..71ec1c0 100644 --- a/src/mngt/ocf_mngt_cache.c +++ b/src/mngt/ocf_mngt_cache.c @@ -494,8 +494,6 @@ static void ocf_mngt_cline_reset_metadata(ocf_cache_t cache, ocf_metadata_set_partition_id(cache, cline, PARTITION_FREELIST); ocf_lru_add_free(cache, cline); - - ocf_cleaning_init_cache_block(cache, cline); } static void ocf_mngt_cline_rebuild_metadata(ocf_cache_t cache,