Express maximum io size in bytes instead of sectors

Signed-off-by: Robert Baldyga <robert.baldyga@intel.com>
This commit is contained in:
Robert Baldyga 2019-01-14 15:01:18 +01:00
parent 2af3b81370
commit 07191c322e

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;
}
/*