Merge pull request #744 from kmajzero/fix_dmesg_metadata_size

Fix for bad metadata capacity reported by dmesg
This commit is contained in:
Robert Baldyga
2022-07-06 17:17:36 +02:00
committed by GitHub

View File

@@ -800,8 +800,8 @@ finalize:
ocf_cache_log(cache, log_info, "Cache line size: %llu kiB\n",
line_size / KiB);
ocf_cache_log(cache, log_info, "Metadata capacity: %llu MiB\n",
(uint64_t)ocf_metadata_size_of(cache) / MiB);
ocf_cache_log(cache, log_info, "Metadata size on device: %llu kiB\n",
cache->device->metadata_offset / KiB);
result = ocf_metadata_concurrency_attached_init(&cache->metadata.lock,
cache, ctrl->raw_desc[metadata_segment_hash].entries,