Remove remaining core_id occurrences from public API
Signed-off-by: Robert Baldyga <robert.baldyga@intel.com>
This commit is contained in:
parent
d499ef1c05
commit
9730b2bd1f
@ -86,15 +86,6 @@ uint32_t ocf_core_get_seq_cutoff_threshold(ocf_core_t core);
|
||||
*/
|
||||
ocf_seq_cutoff_policy ocf_core_get_seq_cutoff_policy(ocf_core_t core);
|
||||
|
||||
/**
|
||||
* @brief Get ID of given core object
|
||||
*
|
||||
* @param[in] core Core object
|
||||
*
|
||||
* @retval Core ID
|
||||
*/
|
||||
ocf_core_id_t ocf_core_get_id(ocf_core_t core);
|
||||
|
||||
/**
|
||||
* @brief Get name of given core object
|
||||
*
|
||||
@ -113,18 +104,6 @@ const char *ocf_core_get_name(ocf_core_t core);
|
||||
*/
|
||||
ocf_core_state_t ocf_core_get_state(ocf_core_t core);
|
||||
|
||||
/**
|
||||
* @brief Obtain core object of given ID from cache
|
||||
*
|
||||
* @param[in] cache Cache object
|
||||
* @param[in] id Core ID
|
||||
* @param[out] core Core object
|
||||
*
|
||||
* @retval 0 Success
|
||||
* @retval Non-zero Core getting failed
|
||||
*/
|
||||
int ocf_core_get(ocf_cache_t cache, ocf_core_id_t id, ocf_core_t *core);
|
||||
|
||||
/**
|
||||
* @brief Allocate new ocf_io
|
||||
*
|
||||
|
@ -85,8 +85,8 @@ struct ocf_event_core_desc {
|
||||
/** Event header */
|
||||
struct ocf_event_hdr hdr;
|
||||
|
||||
/** Core Id */
|
||||
ocf_core_id_t id;
|
||||
/** Core name */
|
||||
const char *name;
|
||||
|
||||
/** Core size in bytes */
|
||||
uint64_t core_size;
|
||||
@ -123,8 +123,8 @@ struct ocf_event_io {
|
||||
/** IO class of IO */
|
||||
uint32_t io_class;
|
||||
|
||||
/** Core ID */
|
||||
ocf_core_id_t core_id;
|
||||
/** Core name */
|
||||
const char *core_name;
|
||||
|
||||
/** Operation type: read, write, trim or flush **/
|
||||
ocf_event_operation_t operation;
|
||||
|
@ -95,6 +95,8 @@ struct ocf_core {
|
||||
|
||||
bool ocf_core_is_valid(ocf_cache_t cache, ocf_core_id_t id);
|
||||
|
||||
ocf_core_id_t ocf_core_get_id(ocf_core_t core);
|
||||
|
||||
int ocf_core_volume_type_init(ocf_ctx_t ctx);
|
||||
|
||||
#endif /* __OCF_CORE_PRIV_H__ */
|
||||
|
@ -27,7 +27,7 @@ static int _ocf_core_desc(ocf_core_t core, void *ctx)
|
||||
ocf_trace_seq_id(cache),
|
||||
env_ticks_to_nsecs(env_get_tick_count()),
|
||||
sizeof(core_desc));
|
||||
core_desc.id = ocf_core_get_id(core);
|
||||
core_desc.name = ocf_core_get_name(core);
|
||||
core_desc.core_size = ocf_volume_get_length(
|
||||
ocf_core_get_volume(core));
|
||||
|
||||
|
@ -59,7 +59,7 @@ static inline void ocf_trace_prep_io_event(struct ocf_event_io *ev,
|
||||
ev->len = req->byte_length;
|
||||
|
||||
ev->operation = op;
|
||||
ev->core_id = ocf_core_get_id(req->core);
|
||||
ev->core_name = ocf_core_get_name(req->core);
|
||||
|
||||
ev->io_class = req->ioi.io.io_class;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user