Add promotion policy API and use it in I/O path
Promotion policy is supposed to perform ALRU noise filtering by eliminating one-hit wonders being added to cache and polluting it. Signed-off-by: Jan Musial <jan.musial@intel.com>
This commit is contained in:
@@ -118,6 +118,6 @@ int space_managment_evict_do(struct ocf_cache *cache,
|
||||
if (evict_cline_no <= evicted)
|
||||
return LOOKUP_MAPPED;
|
||||
|
||||
req->info.eviction_error |= true;
|
||||
req->info.mapping_error |= true;
|
||||
return LOOKUP_MISS;
|
||||
}
|
||||
|
Reference in New Issue
Block a user