dm vdo: fix minor comment issues
Subsystems (2)
Matthew Sakai
maintainercover dm vdo: fix minor comment issues
Jiapeng Chong (8):
dm vdo: Modify mismatched function name
dm vdo slab-depot: Modify mismatched function name dm vdo: Modify mismatched function name
dm vdo: Modify mismatched function name
dm vdo: Modify mismatched function name
dm vdo: Modify mismatched function name
dm vdo dedupe: Modify mismatched function name dm vdo: Modify mismatched function name
Matthew Sakai (3):
dm vdo indexer delta-index: fix typos in comments dm vdo: update module comments
dm vdo: remove outdated pointer_map reference
drivers/md/dm-vdo/admin-state.c | 2 +- drivers/md/dm-vdo/dedupe.c | 2 +- drivers/md/dm-vdo/dm-vdo-target.c | 11 +++-------- drivers/md/dm-vdo/encodings.c | 2 +- drivers/md/dm-vdo/flush.c | 2 +- drivers/md/dm-vdo/indexer/delta-index.c | 2 +- drivers/md/dm-vdo/indexer/delta-index.h | 2 +- drivers/md/dm-vdo/logical-zone.c | 4 ++-- drivers/md/dm-vdo/physical-zone.c | 2 +- drivers/md/dm-vdo/slab-depot.c | 6 +++--- drivers/md/dm-vdo/vdo.c | 9 +++------ 11 files changed, 18 insertions(+), 26 deletions(-)
Signature · 1 line
2.42.0
Matthew Sakai
maintainerPATCH 1/11 dm vdo: Modify mismatched function name
From: Jiapeng Chong <[email protected]>
No functional modification involved.
src/c++/vdo/base/vdo.c:276: warning: expecting prototype for vdo_read_geometry_block(). Prototype was for read_geometry_block() instead.
--- drivers/md/dm-vdo/vdo.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)
drivers/md/dm-vdo/vdo.c +2 -2
@@ -267,8 +267,8 @@ static int __must_check initialize_thread_config(struct thread_count_config coun }/** -* vdo_read_geometry_block() - Synchronously read the geometry block from a vdo's underlying block -* device. +* read_geometry_block() - Synchronously read the geometry block from a vdo's underlying block +* device. * @vdo: The vdo whose geometry is to be read. * * Return: VDO_SUCCESS or an error code.
Signature · 1 line
2.42.0
Matthew Sakai
maintainerPATCH 3/11 dm vdo: Modify mismatched function name
In reply to Matthew SakaiFrom: Jiapeng Chong <[email protected]>
No functional modification involved.
src/c++/vdo/base/physical-zone.c:268: warning: expecting prototype for vdo_free_pbn_lock_pool(). Prototype was for free_pbn_lock_pool() instead.
--- drivers/md/dm-vdo/physical-zone.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/md/dm-vdo/physical-zone.c +1 -1
@@ -258,7 +258,7 @@ static int make_pbn_lock_pool(size_t capacity, struct pbn_lock_pool **pool_ptr) }/** -* vdo_free_pbn_lock_pool() - Free a PBN lock pool. +* free_pbn_lock_pool() - Free a PBN lock pool. * @pool: The lock pool to free. * * This also frees all the PBN locks it allocated, so the caller must ensure that all locks have
Signature · 1 line
2.42.0
Matthew Sakai
maintainerPATCH 4/11 dm vdo: Modify mismatched function name
In reply to Matthew SakaiFrom: Jiapeng Chong <[email protected]>
No functional modification involved.
src/c++/vdo/base/logical-zone.c:303: warning: expecting prototype for void attempt_generation_complete_notification()(). Prototype was for attempt_generation_complete_notification() instead.
--- drivers/md/dm-vdo/logical-zone.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)
drivers/md/dm-vdo/logical-zone.c +2 -2
@@ -295,8 +295,8 @@ static void notify_flusher(struct vdo_completion *completion) }/** -* void attempt_generation_complete_notification() - Notify the flusher if some generation no -* longer has active VIOs. +* attempt_generation_complete_notification() - Notify the flusher if some generation no +* longer has active VIOs. * @completion: The zone completion. */ static void attempt_generation_complete_notification (struct vdo_completion *completion)
Signature · 1 line
2.42.0
Matthew Sakai
maintainerPATCH 5/11 dm vdo: Modify mismatched function name
In reply to Matthew SakaiFrom: Jiapeng Chong <[email protected]>
No functional modification involved.
src/c++/vdo/base/encodings.c:1178: warning: expecting prototype for vdo_decode_component(). Prototype was for decode_vdo_component() instead.
--- drivers/md/dm-vdo/encodings.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/md/dm-vdo/encodings.c +1 -1
@@ -1172,7 +1172,7 @@ static struct vdo_component unpack_vdo_component_41_0(struct packed_vdo_componen }/** -* vdo_decode_component() - Decode the component data for the vdo itself out of the super block. +* decode_vdo_component() - Decode the component data for the vdo itself out of the super block. * * Return: VDO_SUCCESS or an error. */
Signature · 1 line
2.42.0
Matthew Sakai
maintainerPATCH 6/11 dm vdo: Modify mismatched function name
In reply to Matthew SakaiFrom: Jiapeng Chong <[email protected]>
No functional modification involved.
src/c++/vdo/base/flush.c:97: warning: expecting prototype for waiter_as_flush(). Prototype was for vdo_waiter_as_flush() instead.
--- drivers/md/dm-vdo/flush.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/md/dm-vdo/flush.c +1 -1
@@ -88,7 +88,7 @@ static inline struct vdo_flush *completion_as_vdo_flush(struct vdo_completion *c }/** -* waiter_as_flush() - Convert a vdo_flush's generic wait queue entry back to the vdo_flush. +* vdo_waiter_as_flush() - Convert a vdo_flush's generic wait queue entry back to the vdo_flush. * @waiter: The wait queue entry to convert. * * Return: The wait queue entry as a vdo_flush.
Signature · 1 line
2.42.0
Matthew Sakai
maintainerPATCH 7/11 dm vdo dedupe: Modify mismatched function name
In reply to Matthew SakaiFrom: Jiapeng Chong <[email protected]>
No functional modification involved.
src/c++/vdo/base/dedupe.c:2792: warning: expecting prototype for vdo_dump_hash_zone(). Prototype was for dump_hash_zone() instead.
--- drivers/md/dm-vdo/dedupe.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/md/dm-vdo/dedupe.c +1 -1
@@ -2839,7 +2839,7 @@ static const char *index_state_to_string(struct hash_zones *zones, }/** -* vdo_dump_hash_zone() - Dump information about a hash zone to the log for debugging. +* dump_hash_zone() - Dump information about a hash zone to the log for debugging. * @zone: The zone to dump. */ static void dump_hash_zone (const struct hash_zone *zone)
Signature · 1 line
2.42.0
Matthew Sakai
maintainerPATCH 9/11 dm vdo indexer delta-index: fix typos in comments
In reply to Matthew Sakai--- drivers/md/dm-vdo/indexer/delta-index.c | 2 +- drivers/md/dm-vdo/indexer/delta-index.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-)
drivers/md/dm-vdo/indexer/delta-index.c +1 -1
@@ -35,7 +35,7 @@* * Each delta list is stored as a bit stream. Within the delta list encoding, bits and bytes are * numbered in little endian order. Within a byte, bit 0 is the least significant bit (0x1), and -* bit 7 is the most significant bit (0x80). Within a bit stream, bit 7 is the most signficant bit +* bit 7 is the most significant bit (0x80). Within a bit stream, bit 7 is the most significant bit * of byte 0, and bit 8 is the least significant bit of byte 1. Within a byte array, a byte's * number corresponds to its index in the array. *
drivers/md/dm-vdo/indexer/delta-index.h +1 -1
@@ -141,7 +141,7 @@ struct delta_index_page {* record at the end of the list. * * (5) If at_end is false and is_collision is true, the delta_list entry fields refer to a -* collision entry in the list, and the delta_list entry can be used a a reference to this +* collision entry in the list, and the delta_list entry can be used as a reference to this * entry. * * (6) If at_end is false and is_collision is false, the delta_list entry fields refer to a
Signature · 1 line
2.42.0
Matthew Sakai
maintainerPATCH 10/11 dm vdo: update module comments
In reply to Matthew SakaiUpdate outdated comments referring to separate VDO and UDS modules.
--- drivers/md/dm-vdo/dm-vdo-target.c | 11 +++-------- 1 file changed, 3 insertions(+), 8 deletions(-)
drivers/md/dm-vdo/dm-vdo-target.c +3 -8
@@ -2907,9 +2907,7 @@ static int __init vdo_init(void) {int result =0 ; -/* -* UDS module level initialization must be done first, as VDO initialization depends on it -*/ +/* Memory tracking must be initialized first for accurate accounting. */ uds_memory_init ();uds_init_sysfs ();
@@ -2917,7 +2915,7 @@ static int __init vdo_init(void)vdo_initialize_device_registry_once ();uds_log_info ("loaded version %s" ,CURRENT_VERSION ); -/* Add VDO errors to the already existing set of errors in UDS. */ +/* Add VDO errors to the set of errors registered by the indexer. */ result =vdo_register_status_codes ();if (result !=UDS_SUCCESS ) {uds_log_error ("vdo_register_status_codes failed %d" , result);
@@ -2939,11 +2937,8 @@ static int __init vdo_init(void) static void __exit vdo_exit(void) {vdo_module_destroy (); -/* -* UDS module level exit processing must be done after all VDO module exit processing is -* complete. -*/ uds_put_sysfs (); +/* Memory tracking cleanup must be done last. */ uds_memory_exit (); }
Signature · 1 line
2.42.0
Matthew Sakai
maintainerPATCH 2/11 dm vdo slab-depot: Modify mismatched function name
In reply to Matthew SakaiFrom: Jiapeng Chong <[email protected]>
No functional modification involved.
src/c++/vdo/base/slab-depot.c:2042: warning: expecting prototype for vdo_find_free_block(). Prototype was for find_free_block() instead. src/c++/vdo/base/slab-depot.c:5036: warning: expecting prototype for get_depot_slab_journal_statistics(). Prototype was for get_slab_journal_statistics() instead.
--- drivers/md/dm-vdo/slab-depot.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-)
drivers/md/dm-vdo/slab-depot.c +3 -3
@@ -2035,8 +2035,8 @@ static inline slab_block_number find_zero_byte_in_word(const u8 *word_ptr, }/** -* vdo_find_free_block() - Find the first block with a reference count of zero in the specified -* range of reference counter indexes. +* find_free_block() - Find the first block with a reference count of zero in the specified +* range of reference counter indexes. * @slab: The slab counters to scan. * @index_ptr: A pointer to hold the array index of the free block. *
@@ -5032,7 +5032,7 @@ get_ref_counts_statistics(const struct slab_depot *depot) }/** -* get_depot_slab_journal_statistics() - Get the aggregated slab journal statistics for the depot. +* get_slab_journal_statistics() - Get the aggregated slab journal statistics for the depot. * @depot: The slab depot. * * Return: The aggregated statistics for all slab journals in the depot.
Signature · 1 line
2.42.0
Matthew Sakai
maintainerPATCH 8/11 dm vdo: Modify mismatched function name
In reply to Matthew SakaiFrom: Jiapeng Chong <[email protected]>
No functional modification involved.
src/c++/vdo/base/admin-state.c:310: warning: expecting prototype for vdo_drain_operation(). Prototype was for assert_vdo_drain_operation() instead.
--- drivers/md/dm-vdo/admin-state.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/md/dm-vdo/admin-state.c +1 -1
@@ -300,7 +300,7 @@ static bool check_code(bool valid, const struct admin_state_code *code, const ch }/** -* vdo_drain_operation() - Check that an operation is a drain. +* assert_vdo_drain_operation() - Check that an operation is a drain. * @waiter The completion to finish with an error if the operation is not a drain. * * Return: true if the specified operation is a drain.
Signature · 1 line
2.42.0
Matthew Sakai
maintainerPATCH 11/11 dm vdo: remove outdated pointer_map reference
In reply to Matthew Sakai--- drivers/md/dm-vdo/vdo.c | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-)
drivers/md/dm-vdo/vdo.c +1 -4
@@ -67,10 +67,7 @@ struct sync_completion {struct completion completion; }; -/* -* We don't expect this set to ever get really large, so a linked list is adequate. We can use a -* pointer_map if we need to later. -*/ +/* A linked list is adequate for the small number of entries we expect. */ struct device_registry {struct list_head links;/* TODO: Convert to rcu per kernel recommendation. */
Signature · 1 line
2.42.0