Merge pull request #21 from robertbaldyga/ocf-div-round-up

Fix OCF compilation - use new macro name
This commit is contained in:
Robert Bałdyga 2018-12-18 09:32:00 +01:00 committed by GitHub
commit 09b0d72bbc
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -81,7 +81,7 @@ static ocf_cache_line_t ocf_metadata_hash_get_entires(
return cache_lines; return cache_lines;
case metadata_segment_hash: case metadata_segment_hash:
return DIV_ROUND_UP(cache_lines / 4, OCF_HASH_PRIME) * return OCF_DIV_ROUND_UP(cache_lines / 4, OCF_HASH_PRIME) *
OCF_HASH_PRIME - 1; OCF_HASH_PRIME - 1;
case metadata_segment_sb_config: case metadata_segment_sb_config: