Commit 2b39d4a6 authored by Damien Le Moal's avatar Damien Le Moal Committed by Jens Axboe
Browse files

block: improve zone_wplugs debugfs attribute output



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: default avatarBart Van Assche <bvanassche@acm.org>
Signed-off-by: default avatarDamien Le Moal <dlemoal@kernel.org>
Reviewed-by: default avatarChristoph Hellwig <hch@lst.de>
Reviewed-by: default avatarJohannes Thumshirn <johannes.thumshirn@wdc.com>
Reviewed-by: default avatarChaitanya Kulkarni <kch@nvidia.com>
Reviewed-by: default avatarHannes Reinecke <hare@suse.de>
Reviewed-by: default avatarMartin K. Petersen <martin.petersen@oracle.com>
Signed-off-by: default avatarJens Axboe <axboe@kernel.dk>
parent b30ffcdc
Loading
Loading
Loading
Loading
+4 −2
Original line number Diff line number Diff line
@@ -2313,7 +2313,9 @@ 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,
	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);
}