]> git.ipfire.org Git - thirdparty/linux.git/commitdiff
block: improve zone_wplugs debugfs attribute output
authorDamien Le Moal <dlemoal@kernel.org>
Tue, 4 Nov 2025 21:22:46 +0000 (06:22 +0900)
committerJens Axboe <axboe@kernel.dk>
Wed, 5 Nov 2025 15:07:21 +0000 (08:07 -0700)
Make the output of the zone_wplugs debugfs attribute file more easily
readable by adding the name of the zone write plugs fields in the
output.

No functional changes.

Suggested-by: Bart Van Assche <bvanassche@acm.org>
Signed-off-by: Damien Le Moal <dlemoal@kernel.org>
Reviewed-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: Johannes Thumshirn <johannes.thumshirn@wdc.com>
Reviewed-by: Chaitanya Kulkarni <kch@nvidia.com>
Reviewed-by: Hannes Reinecke <hare@suse.de>
Reviewed-by: Martin K. Petersen <martin.petersen@oracle.com>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
block/blk-zoned.c

index 7a7b0704f095f541da61a7401ea33a7a709f2091..3104fda5809b4dd1da716aa660241c60828daef4 100644 (file)
@@ -2313,8 +2313,10 @@ static void queue_zone_wplug_show(struct blk_zone_wplug *zwplug,
        zwp_bio_list_size = bio_list_size(&zwplug->bio_list);
        spin_unlock_irqrestore(&zwplug->lock, flags);
 
-       seq_printf(m, "%u 0x%x %u %u %u\n", zwp_zone_no, zwp_flags, zwp_ref,
-                  zwp_wp_offset, zwp_bio_list_size);
+       seq_printf(m,
+               "Zone no: %u, flags: 0x%x, ref: %u, wp ofst: %u, pending BIO: %u\n",
+               zwp_zone_no, zwp_flags, zwp_ref,
+               zwp_wp_offset, zwp_bio_list_size);
 }
 
 int queue_zone_wplugs_show(void *data, struct seq_file *m)