Merge pull request #568 from mmichal10/fix-passive-update

Fix metadata io detection in passive mode
This commit is contained in:
Robert Baldyga 2021-09-08 13:57:22 +02:00 committed by GitHub
commit d4c2fa6459
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -2018,7 +2018,7 @@ int ocf_metadata_passive_update(ocf_cache_t cache, struct ocf_io *io)
return -OCF_ERR_INVAL; return -OCF_ERR_INVAL;
} }
if (io_end_page >= ctrl->count_pages) if (io_start_page >= ctrl->count_pages)
return 0; return 0;
for (i = 0; i < ARRAY_SIZE(update_segments); i++) { for (i = 0; i < ARRAY_SIZE(update_segments); i++) {