Merge pull request #484 from robertbaldyga/cleaner-dont-check-for-valid-on-skip

cleaner: Don't check for valid if cache line is not dirty
This commit is contained in:
Michał Mielewczyk 2021-04-01 14:21:39 +02:00 committed by GitHub
commit fee4382553
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -920,7 +920,7 @@ void ocf_cleaner_fire(struct ocf_cache *cache,
skip = true;
}
if (!metadata_test_valid_any(cache, cache_line)) {
if (!skip && !metadata_test_valid_any(cache, cache_line)) {
OCF_DEBUG_MSG(cache, "No any valid");
/*