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
commit eb5f4f79e4
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

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