Remove ocf_metadata_get_core_sector()

Signed-off-by: Robert Baldyga <robert.baldyga@intel.com>
This commit is contained in:
Robert Baldyga 2019-08-01 16:50:15 +02:00
parent 0ca0ea1343
commit 0b0546302f
3 changed files with 0 additions and 28 deletions

View File

@ -36,12 +36,6 @@ static inline ocf_core_id_t ocf_metadata_get_core_id(
return cache->metadata.iface.get_core_id(cache, line);
}
static inline uint64_t ocf_metadata_get_core_sector(
struct ocf_cache *cache, ocf_cache_line_t line)
{
return cache->metadata.iface.get_core_sector(cache, line);
}
static inline struct ocf_metadata_uuid *ocf_metadata_get_core_uuid(
struct ocf_cache *cache, ocf_core_id_t core_id)
{

View File

@ -2253,24 +2253,6 @@ static ocf_core_id_t ocf_metadata_hash_get_core_id(
return OCF_CORE_MAX;
}
static uint64_t ocf_metadata_hash_get_core_sector(
struct ocf_cache *cache, ocf_cache_line_t line)
{
const struct ocf_metadata_map *collision;
struct ocf_metadata_hash_ctrl *ctrl =
(struct ocf_metadata_hash_ctrl *) cache->metadata.iface_priv;
collision = ocf_metadata_raw_rd_access(cache,
&(ctrl->raw_desc[metadata_segment_collision]), line,
ctrl->mapping_size);
if (collision)
return collision->core_line;
ocf_metadata_error(cache);
return ULLONG_MAX;
}
static struct ocf_metadata_uuid *ocf_metadata_hash_get_core_uuid(
struct ocf_cache *cache, ocf_core_id_t core_id)
{
@ -2844,7 +2826,6 @@ static const struct ocf_metadata_iface metadata_hash_iface = {
.set_core_info = ocf_metadata_hash_set_core_info,
.get_core_info = ocf_metadata_hash_get_core_info,
.get_core_id = ocf_metadata_hash_get_core_id,
.get_core_sector = ocf_metadata_hash_get_core_sector,
.get_core_uuid = ocf_metadata_hash_get_core_uuid,
/*

View File

@ -340,9 +340,6 @@ struct ocf_metadata_iface {
ocf_core_id_t (*get_core_id)(struct ocf_cache *cache,
ocf_cache_line_t line);
uint64_t (*get_core_sector)(struct ocf_cache *cache,
ocf_cache_line_t line);
void (*get_core_and_part_id)(struct ocf_cache *cache,
ocf_cache_line_t line, ocf_core_id_t *core_id,
ocf_part_id_t *part_id);