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

13
src/utils/utils_request.h Normal file
View File

@@ -0,0 +1,13 @@
/*
* Copyright(c) 2012-2021 Intel Corporation
* SPDX-License-Identifier: BSD-3-Clause-Clear
*/
#include "../ocf_request.h"
#include "../ocf_cache_priv.h"
typedef int (*ocf_req_actor_t)(struct ocf_request *req, uint32_t map_idx);
int ocf_req_actor(struct ocf_request *req, ocf_req_actor_t actor);
void ocf_req_set_cleaning_hot(struct ocf_request *req);