Fix helper function getting next invalid cache line
Signed-off-by: Robert Baldyga <robert.baldyga@intel.com>
This commit is contained in:
parent
7b5084b21e
commit
be1ac09c17
@ -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