Introduce core_is_dirty mngt method

Signed-off-by: Michal Rakowski <michal.rakowski@intel.com>
This commit is contained in:
Michal Rakowski
2019-06-25 09:06:32 +02:00
parent 4a6fc035e9
commit b1a6c467a0
3 changed files with 16 additions and 3 deletions

View File

@@ -96,8 +96,7 @@ static int _ocf_cleaner_run_check_dirty_inactive(ocf_cache_t cache)
return 0;
for_each_core(cache, core, core_id) {
if (core->opened && env_atomic_read(
&core->runtime_meta->dirty_clines)) {
if (core->opened && ocf_mngt_core_is_dirty(core)) {
return 0;
}
}