Fix metadata io detection in passive mode

Signed-off-by: Michal Mielewczyk <michal.mielewczyk@intel.com>
This commit is contained in:
Michal Mielewczyk 2021-09-08 13:33:04 +02:00
parent 20741206ed
commit 612f68b3c1

View File

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