Merge pull request #196 from imjfckm/fix-io-classes

Revert "Disallow ocf_cache_mode_max in io_class config"
This commit is contained in:
Adam Rutkowski 2019-06-14 08:27:28 -04:00 committed by GitHub
commit db734c2359
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -236,7 +236,7 @@ static int _ocf_mngt_io_class_validate_cfg(ocf_cache_t cache,
return 0; return 0;
if (cfg->cache_mode < ocf_cache_mode_none || if (cfg->cache_mode < ocf_cache_mode_none ||
cfg->cache_mode >= ocf_cache_mode_max) { cfg->cache_mode > ocf_cache_mode_max) {
return -OCF_ERR_INVAL; return -OCF_ERR_INVAL;
} }