Merge pull request #538 from robertbaldyga/fix-next-inval-getter
Fix helper function getting next invalid cache line
This commit is contained in:
commit
740bf06c4b
@ -878,8 +878,7 @@ static ocf_cache_line_t next_phys_invalid(ocf_cache_t cache,
|
||||
return collision_table_entries;
|
||||
|
||||
lg = ocf_metadata_map_phy2lg(cache, phys);
|
||||
while (metadata_test_valid_any(cache, lg) &&
|
||||
phys + 1 < collision_table_entries) {
|
||||
while (metadata_test_valid_any(cache, lg)) {
|
||||
++phys;
|
||||
|
||||
if (phys == collision_table_entries)
|
||||
|
Loading…
Reference in New Issue
Block a user