Revert "Disallow ocf_cache_mode_max in io_class config"

This reverts commit 5ad5c521df.

This change broke setting IO-classes with allocation. We use max as a
special value to indicate that the partition should use cache global
caching mode.
This commit is contained in:
Jan Musial 2019-06-14 14:00:23 +02:00
parent 43d6dd7a1c
commit aec01f216c

View File

@ -236,7 +236,7 @@ static int _ocf_mngt_io_class_validate_cfg(ocf_cache_t cache,
return 0;
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;
}