Add ocf_cache_line_size_none

Signed-off-by: Robert Baldyga <robert.baldyga@intel.com>
This commit is contained in:
Robert Baldyga
2019-05-23 13:24:25 +02:00
parent 8c96270ce8
commit efa96ef7bd
2 changed files with 4 additions and 1 deletions

View File

@@ -1594,7 +1594,7 @@ static int _ocf_mngt_cache_validate_device_cfg(
if (device_cfg->uuid.size > OCF_VOLUME_UUID_MAX_SIZE)
return -OCF_ERR_INVAL;
if (device_cfg->cache_line_size &&
if (device_cfg->cache_line_size != ocf_cache_line_size_none &&
!ocf_cache_line_size_is_valid(device_cfg->cache_line_size))
return -OCF_ERR_INVALID_CACHE_LINE_SIZE;