Merge pull request #431 from arutk/fix_part_init

Add missing part->id initialization
This commit is contained in:
Robert Baldyga 2020-12-22 15:32:10 +01:00 committed by GitHub
commit 08af1192d4
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -570,6 +570,7 @@ static int ocf_metadata_init_fixed_size(struct ocf_cache *cache,
for (i = 0; i < OCF_IO_CLASS_MAX + 1; i++) {
cache->user_parts[i].config = &part_config[i];
cache->user_parts[i].runtime = &part_runtime[i];
cache->user_parts[i].id = i;
}
/* Set core metadata */