Merge pull request #39 from robertbaldyga/max-io-size-bytes

Express maximum io size in bytes instead of sectors
This commit is contained in:
Katarzyna Łapińska
2019-01-14 15:47:30 +01:00
committed by GitHub

View File

@@ -46,8 +46,7 @@ static struct ocf_io_if meta_restart_if = {
*/
static uint32_t metadata_io_max_page(struct ocf_cache *cache)
{
return ocf_dobj_get_max_io_size(&cache->device->obj) /
BYTES_TO_SECTORS(PAGE_SIZE);
return ocf_dobj_get_max_io_size(&cache->device->obj) / PAGE_SIZE;
}
/*