Added 'added' flag in core runtime data.
Signed-off-by: Michal Mielewczyk <michal.mielewczyk@intel.com>
This commit is contained in:
@@ -179,9 +179,13 @@ static inline ocf_core_t ocf_cache_get_core(ocf_cache_t cache,
|
||||
}
|
||||
|
||||
#define for_each_core_all(_cache, _core, _id) \
|
||||
for (_id = 0; _core = &cache->core[_id], _id < OCF_CORE_MAX; _id++)
|
||||
for (_id = 0; _core = &_cache->core[_id], _id < OCF_CORE_MAX; _id++)
|
||||
|
||||
#define for_each_core(_cache, _core, _id) \
|
||||
for_each_core_all(_cache, _core, _id) \
|
||||
if (_core->added)
|
||||
|
||||
#define for_each_core_metadata(_cache, _core, _id) \
|
||||
for_each_core_all(_cache, _core, _id) \
|
||||
if (_core->conf_meta->valid)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user