Fix updating hot cachelines cleaning list

Update cacheline's timestamp each time it's being written.

Signed-off-by: Michal Mielewczyk <michal.mielewczyk@intel.com>
This commit is contained in:
Michal Mielewczyk
2021-02-09 02:42:17 -05:00
parent fd26735157
commit fa41d4fc88
5 changed files with 62 additions and 1 deletions

View File

@@ -69,6 +69,9 @@ static inline uint64_t ocf_lines_2_bytes(struct ocf_cache *cache,
return lines * ocf_line_size(cache);
}
void ocf_cleaning_set_hot_cache_line(struct ocf_cache *cache,
ocf_cache_line_t line);
/**
* @brief Set cache line invalid
*