Renamed 'added' flag in core metadata to 'valid'.
Signed-off-by: Michal Mielewczyk <michal.mielewczyk@intel.com>
This commit is contained in:
parent
340ca76159
commit
433a25a1b2
@ -640,7 +640,7 @@ static void ocf_metadata_query_cores_end(struct query_cores_context *context,
|
||||
ocf_metadata_hash_query_cores_data_read(ctx,
|
||||
&context->data.core_config,
|
||||
&core_config, sizeof(core_config));
|
||||
if (core_config.added) {
|
||||
if (core_config.valid) {
|
||||
env_bit_set(i, valid_core_bitmap);
|
||||
++core_count;
|
||||
}
|
||||
|
@ -99,7 +99,7 @@ void cache_mngt_core_remove_from_meta(ocf_core_t core)
|
||||
OCF_METADATA_LOCK_WR();
|
||||
|
||||
/* In metadata mark data this core was removed from cache */
|
||||
core->conf_meta->added = false;
|
||||
core->conf_meta->valid = false;
|
||||
|
||||
/* Clear UUID of core */
|
||||
ocf_mngt_core_clear_uuid_metadata(core);
|
||||
|
@ -115,7 +115,7 @@ static void _ocf_mngt_cache_add_core_handle_error(
|
||||
if (context->flags.counters_allocated) {
|
||||
env_bit_clear(core_id,
|
||||
cache->conf_meta->valid_core_bitmap);
|
||||
core->conf_meta->added = false;
|
||||
core->conf_meta->valid = false;
|
||||
core->opened = false;
|
||||
|
||||
env_free(core->counters);
|
||||
@ -419,7 +419,7 @@ static void ocf_mngt_cache_add_core_insert(ocf_pipeline_t pipeline,
|
||||
|
||||
/* In metadata mark data this core was added into cache */
|
||||
env_bit_set(core_id, cache->conf_meta->valid_core_bitmap);
|
||||
core->conf_meta->added = true;
|
||||
core->conf_meta->valid = true;
|
||||
core->opened = true;
|
||||
|
||||
/* Set default cache parameters for sequential */
|
||||
|
@ -183,7 +183,7 @@ static inline ocf_core_t ocf_cache_get_core(ocf_cache_t cache,
|
||||
|
||||
#define for_each_core(_cache, _core, _id) \
|
||||
for_each_core_all(_cache, _core, _id) \
|
||||
if (_core->conf_meta->added)
|
||||
if (_core->conf_meta->valid)
|
||||
|
||||
#define ocf_cache_log_prefix(cache, lvl, prefix, fmt, ...) \
|
||||
ocf_log_prefix(ocf_cache_get_ctx(cache), lvl, "%s" prefix, \
|
||||
|
@ -30,8 +30,8 @@ struct ocf_core_meta_config {
|
||||
|
||||
uint8_t type;
|
||||
|
||||
/* This bit means that object was added into cache */
|
||||
uint32_t added : 1;
|
||||
/* This bit means that object was saved in cache metadata */
|
||||
uint32_t valid : 1;
|
||||
|
||||
/* Core sequence number used to correlate cache lines with cores
|
||||
* when recovering from atomic device */
|
||||
|
Loading…
Reference in New Issue
Block a user