Refactor ocf_engine_remap
.. so that the main part, responsible strictly for mapping given LBA to given collision index, is encapsulated in a function ocf_map_cache_line with external linkage. Signed-off-by: Adam Rutkowski <adam.j.rutkowski@intel.com>
This commit is contained in:
@@ -112,6 +112,9 @@ static inline uint32_t ocf_engine_unmapped_count(struct ocf_request *req)
|
||||
return req->core_line_count - (req->info.hit_no + req->info.invalid_no);
|
||||
}
|
||||
|
||||
void ocf_map_cache_line(struct ocf_request *req,
|
||||
unsigned int idx, ocf_cache_line_t cache_line);
|
||||
|
||||
/**
|
||||
* @brief Get number of cache lines to repart
|
||||
*
|
||||
|
Reference in New Issue
Block a user