Express maximum io size in bytes instead of sectors
Signed-off-by: Robert Baldyga <robert.baldyga@intel.com>
This commit is contained in:
parent
2af3b81370
commit
07191c322e
@ -46,8 +46,7 @@ static struct ocf_io_if meta_restart_if = {
|
|||||||
*/
|
*/
|
||||||
static uint32_t metadata_io_max_page(struct ocf_cache *cache)
|
static uint32_t metadata_io_max_page(struct ocf_cache *cache)
|
||||||
{
|
{
|
||||||
return ocf_dobj_get_max_io_size(&cache->device->obj) /
|
return ocf_dobj_get_max_io_size(&cache->device->obj) / PAGE_SIZE;
|
||||||
BYTES_TO_SECTORS(PAGE_SIZE);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/*
|
/*
|
||||||
|
Loading…
Reference in New Issue
Block a user