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:
parent
43d6dd7a1c
commit
aec01f216c
@ -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;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user