Uncouple lookup() and set_hot()

Signed-off-by: Michal Mielewczyk <michal.mielewczyk@huawei.com>
This commit is contained in:
Michal Mielewczyk
2024-08-14 07:25:00 +02:00
parent 7dfe70f69b
commit 0df0eec7f0
2 changed files with 13 additions and 2 deletions

View File

@@ -234,6 +234,15 @@ struct ocf_engine_callbacks
*/
int ocf_engine_prepare_clines(struct ocf_request *req);
/**
* @brief Check if the OCF request is mapped to cache (lookup cache)
*
* @note This function checks if there is a HIT without updating hotness info
*
* @param req OCF request
*/
void ocf_engine_lookup(struct ocf_request *req);
/**
* @brief Traverse OCF request (lookup cache)
*
@@ -285,4 +294,6 @@ void inc_fallback_pt_error_counter(ocf_cache_t cache);
void ocf_engine_on_resume(struct ocf_request *req);
void ocf_engine_set_hot(struct ocf_request *req);
#endif /* ENGINE_COMMON_H_ */