Merge pull request #220 from arutk/metadata_offset_hash

New hash function formula
This commit is contained in:
Kamil Łepek
2019-07-29 13:03:04 +02:00
committed by GitHub
6 changed files with 90 additions and 26 deletions

View File

@@ -50,9 +50,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;