Cleanup map_info struct

1. Rename hash_key -> hash
2. Better comments for hash and coll_idx

Signed-off-by: Adam Rutkowski <adam.j.rutkowski@intel.com>
This commit is contained in:
Adam Rutkowski
2019-07-19 12:58:07 -04:00
parent 0c8bc4cec5
commit 7184f7787c
3 changed files with 15 additions and 13 deletions

View File

@@ -49,9 +49,11 @@ struct ocf_req_info {
};
struct ocf_map_info {
/* If HIT -> pointer to hash_key and coll_idx */
unsigned int hash_key;
unsigned int coll_idx;
ocf_cache_line_t hash;
/*!< target LBA & core id hash */
ocf_cache_line_t coll_idx;
/*!< Index in collision table (in case of hit) */
uint64_t core_line;