nhit promotion policy implementation

Signed-off-by: Jan Musial <jan.musial@intel.com>
This commit is contained in:
Jan Musial
2019-08-01 12:53:13 +02:00
parent 8ed525ae7f
commit 62a0ccdd9f
11 changed files with 654 additions and 47 deletions

View File

@@ -210,7 +210,7 @@ typedef enum {
* OCF supported promotion policy types
*/
typedef enum {
ocf_promotion_nop = 0,
ocf_promotion_always = 0,
/*!< No promotion policy. Cache inserts are not filtered */
ocf_promotion_nhit,
@@ -219,7 +219,7 @@ typedef enum {
ocf_promotion_max,
/*!< Stopper of enumerator */
ocf_promotion_default = ocf_promotion_nop,
ocf_promotion_default = ocf_promotion_always,
/*!< Default promotion policy */
} ocf_promotion_t;