Rename "evp_lru*" functions to "ocf_lru*"
Signed-off-by: Adam Rutkowski <adam.j.rutkowski@intel.com>
This commit is contained in:
@@ -203,7 +203,7 @@ unsigned current_case;
|
||||
|
||||
struct ocf_lru_list list;
|
||||
|
||||
struct ocf_lru_list *__wrap_evp_lru_get_list(struct ocf_user_part *user_part,
|
||||
struct ocf_lru_list *__wrap_ocf_lru_get_list(struct ocf_user_part *user_part,
|
||||
uint32_t evp, bool clean)
|
||||
{
|
||||
unsigned i = 0;
|
||||
@@ -232,7 +232,7 @@ struct ocf_lru_list *__wrap_evp_lru_get_list(struct ocf_user_part *user_part,
|
||||
inline struct ocf_lru_list *__wrap_evp_get_cline_list(ocf_cache_t cache,
|
||||
ocf_cache_line_t cline)
|
||||
{
|
||||
return __wrap_evp_lru_get_list(NULL, cline % OCF_NUM_EVICTION_LISTS, true);
|
||||
return __wrap_ocf_lru_get_list(NULL, cline % OCF_NUM_EVICTION_LISTS, true);
|
||||
}
|
||||
|
||||
|
||||
|
@@ -53,7 +53,7 @@ uint32_t __wrap_ocf_evict_calculate(ocf_cache_t cache,
|
||||
return min(tcache->evictable[user_part->part.id], to_evict);
|
||||
}
|
||||
|
||||
uint32_t __wrap_evp_lru_req_clines(struct ocf_request *req,
|
||||
uint32_t __wrap_ocf_lru_req_clines(struct ocf_request *req,
|
||||
struct ocf_part *src_part, uint32_t cline_no)
|
||||
{
|
||||
struct test_cache *tcache = (struct test_cache *)req->cache;
|
||||
@@ -193,10 +193,10 @@ uint32_t __wrap_ocf_engine_unmapped_count(struct ocf_request *req)
|
||||
|
||||
#define _expect_evict_call(tcache, part_id, req_count, ret_count) \
|
||||
do { \
|
||||
expect_value(__wrap_evp_lru_req_clines, src_part, &tcache.cache.user_parts[part_id].part); \
|
||||
expect_value(__wrap_evp_lru_req_clines, cline_no, req_count); \
|
||||
expect_function_call(__wrap_evp_lru_req_clines); \
|
||||
will_return(__wrap_evp_lru_req_clines, ret_count); \
|
||||
expect_value(__wrap_ocf_lru_req_clines, src_part, &tcache.cache.user_parts[part_id].part); \
|
||||
expect_value(__wrap_ocf_lru_req_clines, cline_no, req_count); \
|
||||
expect_function_call(__wrap_ocf_lru_req_clines); \
|
||||
will_return(__wrap_ocf_lru_req_clines, ret_count); \
|
||||
} while (false);
|
||||
|
||||
static void ocf_remap_do_test01(void **state)
|
||||
|
Reference in New Issue
Block a user