summaryrefslogtreecommitdiff
path: root/drivers/md/dm-vdo/repair.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/md/dm-vdo/repair.c')
-rw-r--r--drivers/md/dm-vdo/repair.c24
1 files changed, 12 insertions, 12 deletions
diff --git a/drivers/md/dm-vdo/repair.c b/drivers/md/dm-vdo/repair.c
index 847aca9fbe47..bfcdedeedb86 100644
--- a/drivers/md/dm-vdo/repair.c
+++ b/drivers/md/dm-vdo/repair.c
@@ -226,7 +226,7 @@ static void uninitialize_vios(struct repair_completion *repair)
while (repair->vio_count > 0)
free_vio_components(&repair->vios[--repair->vio_count]);
- uds_free(uds_forget(repair->vios));
+ vdo_free(vdo_forget(repair->vios));
}
static void free_repair_completion(struct repair_completion *repair)
@@ -241,9 +241,9 @@ static void free_repair_completion(struct repair_completion *repair)
repair->completion.vdo->block_map->zones[0].page_cache.rebuilding = false;
uninitialize_vios(repair);
- uds_free(uds_forget(repair->journal_data));
- uds_free(uds_forget(repair->entries));
- uds_free(repair);
+ vdo_free(vdo_forget(repair->journal_data));
+ vdo_free(vdo_forget(repair->entries));
+ vdo_free(repair);
}
static void finish_repair(struct vdo_completion *completion)
@@ -262,7 +262,7 @@ static void finish_repair(struct vdo_completion *completion)
repair->highest_tail,
repair->logical_blocks_used,
repair->block_map_data_blocks);
- free_repair_completion(uds_forget(repair));
+ free_repair_completion(vdo_forget(repair));
if (vdo_state_requires_read_only_rebuild(vdo->load_state)) {
uds_log_info("Read-only rebuild complete");
@@ -295,7 +295,7 @@ static void abort_repair(struct vdo_completion *completion)
else
uds_log_warning("Recovery aborted");
- free_repair_completion(uds_forget(repair));
+ free_repair_completion(vdo_forget(repair));
vdo_continue_completion(parent, result);
}
@@ -1108,7 +1108,7 @@ static void recover_block_map(struct vdo_completion *completion)
if (repair->block_map_entry_count == 0) {
uds_log_info("Replaying 0 recovery entries into block map");
- uds_free(uds_forget(repair->journal_data));
+ vdo_free(vdo_forget(repair->journal_data));
launch_repair_completion(repair, load_slab_depot, VDO_ZONE_TYPE_ADMIN);
return;
}
@@ -1418,7 +1418,7 @@ static int parse_journal_for_rebuild(struct repair_completion *repair)
* packed_recovery_journal_entry from every valid journal block.
*/
count = ((repair->highest_tail - repair->block_map_head + 1) * entries_per_block);
- result = uds_allocate(count, struct numbered_block_mapping, __func__,
+ result = vdo_allocate(count, struct numbered_block_mapping, __func__,
&repair->entries);
if (result != VDO_SUCCESS)
return result;
@@ -1464,7 +1464,7 @@ static int extract_new_mappings(struct repair_completion *repair)
* Allocate an array of numbered_block_mapping structs just large enough to transcribe
* every packed_recovery_journal_entry from every valid journal block.
*/
- result = uds_allocate(repair->entry_count, struct numbered_block_mapping,
+ result = vdo_allocate(repair->entry_count, struct numbered_block_mapping,
__func__, &repair->entries);
if (result != VDO_SUCCESS)
return result;
@@ -1709,7 +1709,7 @@ void vdo_repair(struct vdo_completion *parent)
uds_log_warning("Device was dirty, rebuilding reference counts");
}
- result = uds_allocate_extended(struct repair_completion, page_count,
+ result = vdo_allocate_extended(struct repair_completion, page_count,
struct vdo_page_completion, __func__,
&repair);
if (result != VDO_SUCCESS) {
@@ -1723,12 +1723,12 @@ void vdo_repair(struct vdo_completion *parent)
prepare_repair_completion(repair, finish_repair, VDO_ZONE_TYPE_ADMIN);
repair->page_count = page_count;
- result = uds_allocate(remaining * VDO_BLOCK_SIZE, char, __func__,
+ result = vdo_allocate(remaining * VDO_BLOCK_SIZE, char, __func__,
&repair->journal_data);
if (abort_on_error(result, repair))
return;
- result = uds_allocate(vio_count, struct vio, __func__, &repair->vios);
+ result = vdo_allocate(vio_count, struct vio, __func__, &repair->vios);
if (abort_on_error(result, repair))
return;