Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

block: fix blk_zone_cond_str() comment

Fix the comment for blk_zone_cond_str() by replacing the meaningless
BLK_ZONE_ZONE_XXX comment with the correct BLK_ZONE_COND_name, thus also
replacing the XXX with what that actually means.

Signed-off-by: Damien Le Moal <dlemoal@kernel.org>
Reviewed-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: Chaitanya Kulkarni <kch@nvidia.com>
Reviewed-by: Bart Van Assche <bvanassche@acm.org>
Signed-off-by: Jens Axboe <axboe@kernel.dk>

authored by

Damien Le Moal and committed by
Jens Axboe
41ee77b7 91e1c1bc

+6 -6
+5 -5
block/blk-zoned.c
··· 112 112 #define BLK_ZONE_WPLUG_UNHASHED (1U << 2) 113 113 114 114 /** 115 - * blk_zone_cond_str - Return string XXX in BLK_ZONE_COND_XXX. 116 - * @zone_cond: BLK_ZONE_COND_XXX. 115 + * blk_zone_cond_str - Return a zone condition name string 116 + * @zone_cond: a zone condition BLK_ZONE_COND_name 117 117 * 118 - * Description: Centralize block layer function to convert BLK_ZONE_COND_XXX 119 - * into string format. Useful in the debugging and tracing zone conditions. For 120 - * invalid BLK_ZONE_COND_XXX it returns string "UNKNOWN". 118 + * Convert a BLK_ZONE_COND_name zone condition into the string "name". Useful 119 + * for the debugging and tracing zone conditions. For an invalid zone 120 + * conditions, the string "UNKNOWN" is returned. 121 121 */ 122 122 const char *blk_zone_cond_str(enum blk_zone_cond zone_cond) 123 123 {
+1 -1
include/linux/blkdev.h
··· 1044 1044 return bdev->bd_queue; /* this is never NULL */ 1045 1045 } 1046 1046 1047 - /* Helper to convert BLK_ZONE_ZONE_XXX to its string format XXX */ 1047 + /* Convert a zone condition BLK_ZONE_COND_name into the string "name" */ 1048 1048 const char *blk_zone_cond_str(enum blk_zone_cond zone_cond); 1049 1049 1050 1050 static inline unsigned int bio_zone_no(struct bio *bio)