Skip to content

Commit

Permalink
Merge pull request #74 from lorelei-sakai/ingest/removed-code
Browse files Browse the repository at this point in the history
[VDO-5831] Ingest removed code
  • Loading branch information
lorelei-sakai authored Nov 6, 2024
2 parents 63a477e + df67f0d commit ccb0eeb
Show file tree
Hide file tree
Showing 4 changed files with 0 additions and 64 deletions.
29 changes: 0 additions & 29 deletions drivers/md/dm-vdo/data-vio.c
Original file line number Diff line number Diff line change
Expand Up @@ -1075,35 +1075,6 @@ void dump_data_vio_pool(struct data_vio_pool *pool, bool dump_vios)
spin_unlock(&pool->lock);
}

data_vio_count_t get_data_vio_pool_active_discards(struct data_vio_pool *pool)
{
return READ_ONCE(pool->discard_limiter.busy);
}

data_vio_count_t get_data_vio_pool_discard_limit(struct data_vio_pool *pool)
{
return READ_ONCE(pool->discard_limiter.limit);
}

data_vio_count_t get_data_vio_pool_maximum_discards(struct data_vio_pool *pool)
{
return READ_ONCE(pool->discard_limiter.max_busy);
}

int set_data_vio_pool_discard_limit(struct data_vio_pool *pool, data_vio_count_t limit)
{
if (get_data_vio_pool_request_limit(pool) < limit) {
// The discard limit may not be higher than the data_vio limit.
return -EINVAL;
}

spin_lock(&pool->lock);
pool->discard_limiter.limit = limit;
spin_unlock(&pool->lock);

return VDO_SUCCESS;
}

data_vio_count_t get_data_vio_pool_active_requests(struct data_vio_pool *pool)
{
return READ_ONCE(pool->limiter.busy);
Expand Down
5 changes: 0 additions & 5 deletions drivers/md/dm-vdo/data-vio.h
Original file line number Diff line number Diff line change
Expand Up @@ -336,11 +336,6 @@ void drain_data_vio_pool(struct data_vio_pool *pool, struct vdo_completion *comp
void resume_data_vio_pool(struct data_vio_pool *pool, struct vdo_completion *completion);

void dump_data_vio_pool(struct data_vio_pool *pool, bool dump_vios);
data_vio_count_t get_data_vio_pool_active_discards(struct data_vio_pool *pool);
data_vio_count_t get_data_vio_pool_discard_limit(struct data_vio_pool *pool);
data_vio_count_t get_data_vio_pool_maximum_discards(struct data_vio_pool *pool);
int __must_check set_data_vio_pool_discard_limit(struct data_vio_pool *pool,
data_vio_count_t limit);
data_vio_count_t get_data_vio_pool_active_requests(struct data_vio_pool *pool);
data_vio_count_t get_data_vio_pool_request_limit(struct data_vio_pool *pool);
data_vio_count_t get_data_vio_pool_maximum_requests(struct data_vio_pool *pool);
Expand Down
26 changes: 0 additions & 26 deletions drivers/md/dm-vdo/indexer/index-layout.c
Original file line number Diff line number Diff line change
Expand Up @@ -248,32 +248,6 @@ static int __must_check compute_sizes(const struct uds_configuration *config,
return UDS_SUCCESS;
}

int uds_compute_index_size(const struct uds_parameters *parameters, u64 *index_size)
{
int result;
struct uds_configuration *index_config;
struct save_layout_sizes sizes;

if (index_size == NULL) {
vdo_log_error("Missing output size pointer");
return -EINVAL;
}

result = uds_make_configuration(parameters, &index_config);
if (result != UDS_SUCCESS) {
vdo_log_error_strerror(result, "cannot compute index size");
return uds_status_to_errno(result);
}

result = compute_sizes(index_config, &sizes);
uds_free_configuration(index_config);
if (result != UDS_SUCCESS)
return uds_status_to_errno(result);

*index_size = sizes.total_size;
return UDS_SUCCESS;
}

/* Create unique data using the current time and a pseudorandom number. */
static void create_unique_nonce_data(u8 *buffer)
{
Expand Down
4 changes: 0 additions & 4 deletions drivers/md/dm-vdo/indexer/indexer.h
Original file line number Diff line number Diff line change
Expand Up @@ -283,10 +283,6 @@ struct uds_request {
enum uds_index_region location;
};

/* Compute the number of bytes needed to store an index. */
int __must_check uds_compute_index_size(const struct uds_parameters *parameters,
u64 *index_size);

/* A session is required for most index operations. */
int __must_check uds_create_index_session(struct uds_index_session **session);

Expand Down

0 comments on commit ccb0eeb

Please sign in to comment.