Commit fa398e60 authored by Matthew Sakai's avatar Matthew Sakai Committed by Mikulas Patocka

dm vdo repair: add missing kerneldoc fields

Also remove trivial comment for increment_recovery_point.
Reported-by: default avatarAbaci Robot <abaci@linux.alibaba.com>
Closes: https://bugzilla.openanolis.cn/show_bug.cgi?id=9518Signed-off-by: default avatarMatthew Sakai <msakai@redhat.com>
Signed-off-by: default avatarMikulas Patocka <mpatocka@redhat.com>
parent 0b60be16
...@@ -318,6 +318,7 @@ static bool __must_check abort_on_error(int result, struct repair_completion *re ...@@ -318,6 +318,7 @@ static bool __must_check abort_on_error(int result, struct repair_completion *re
/** /**
* drain_slab_depot() - Flush out all dirty refcounts blocks now that they have been rebuilt or * drain_slab_depot() - Flush out all dirty refcounts blocks now that they have been rebuilt or
* recovered. * recovered.
* @completion: The repair completion.
*/ */
static void drain_slab_depot(struct vdo_completion *completion) static void drain_slab_depot(struct vdo_completion *completion)
{ {
...@@ -653,9 +654,6 @@ static void rebuild_reference_counts(struct vdo_completion *completion) ...@@ -653,9 +654,6 @@ static void rebuild_reference_counts(struct vdo_completion *completion)
vdo_traverse_forest(vdo->block_map, process_entry, completion); vdo_traverse_forest(vdo->block_map, process_entry, completion);
} }
/**
* increment_recovery_point() - Move the given recovery point forward by one entry.
*/
static void increment_recovery_point(struct recovery_point *point) static void increment_recovery_point(struct recovery_point *point)
{ {
if (++point->entry_count < RECOVERY_JOURNAL_ENTRIES_PER_SECTOR) if (++point->entry_count < RECOVERY_JOURNAL_ENTRIES_PER_SECTOR)
...@@ -952,6 +950,7 @@ static void abort_block_map_recovery(struct repair_completion *repair, int resul ...@@ -952,6 +950,7 @@ static void abort_block_map_recovery(struct repair_completion *repair, int resul
/** /**
* find_entry_starting_next_page() - Find the first journal entry after a given entry which is not * find_entry_starting_next_page() - Find the first journal entry after a given entry which is not
* on the same block map page. * on the same block map page.
* @repair: The repair completion.
* @current_entry: The entry to search from. * @current_entry: The entry to search from.
* @needs_sort: Whether sorting is needed to proceed. * @needs_sort: Whether sorting is needed to proceed.
* *
...@@ -1218,6 +1217,7 @@ static bool __must_check is_exact_recovery_journal_block(const struct recovery_j ...@@ -1218,6 +1217,7 @@ static bool __must_check is_exact_recovery_journal_block(const struct recovery_j
/** /**
* find_recovery_journal_head_and_tail() - Find the tail and head of the journal. * find_recovery_journal_head_and_tail() - Find the tail and head of the journal.
* @repair: The repair completion.
* *
* Return: True if there were valid journal blocks. * Return: True if there were valid journal blocks.
*/ */
...@@ -1446,6 +1446,7 @@ static int validate_heads(struct repair_completion *repair) ...@@ -1446,6 +1446,7 @@ static int validate_heads(struct repair_completion *repair)
/** /**
* extract_new_mappings() - Find all valid new mappings to be applied to the block map. * extract_new_mappings() - Find all valid new mappings to be applied to the block map.
* @repair: The repair completion.
* *
* The mappings are extracted from the journal and stored in a sortable array so that all of the * The mappings are extracted from the journal and stored in a sortable array so that all of the
* mappings to be applied to a given block map page can be done in a single page fetch. * mappings to be applied to a given block map page can be done in a single page fetch.
...@@ -1500,6 +1501,7 @@ static int extract_new_mappings(struct repair_completion *repair) ...@@ -1500,6 +1501,7 @@ static int extract_new_mappings(struct repair_completion *repair)
/** /**
* compute_usages() - Compute the lbns in use and block map data blocks counts from the tail of * compute_usages() - Compute the lbns in use and block map data blocks counts from the tail of
* the journal. * the journal.
* @repair: The repair completion.
*/ */
static noinline int compute_usages(struct repair_completion *repair) static noinline int compute_usages(struct repair_completion *repair)
{ {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment