Merge pull request #569 from robertbaldyga/fix-clear-valid-if-clean

Fix metadata_clear_valid_if_clean()
This commit is contained in:
Robert Baldyga 2021-09-10 08:55:34 +02:00 committed by GitHub
commit 886c8d4e31
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -237,7 +237,7 @@ static bool _ocf_metadata_clear_valid_if_clean_##type(struct ocf_cache *cache, \
\
_raw_bug_on(raw, line); \
\
map[line].valid &= ~mask & map[line].dirty; \
map[line].valid &= mask & map[line].dirty; \
\
if (map[line].valid) { \
return true; \