[PATCH v3 12/15] block: improve zone_wplugs debugfs attribute output

Hannes Reinecke hare at suse.de
Tue Nov 4 23:11:53 PST 2025


On 11/4/25 02:31, Damien Le Moal wrote:
> 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 at acm.org>
> Signed-off-by: Damien Le Moal <dlemoal at kernel.org>
> Reviewed-by: Christoph Hellwig <hch at lst.de>
> Reviewed-by: Johannes Thumshirn <johannes.thumshirn at wdc.com>
> ---
>   block/blk-zoned.c | 6 ++++--
>   1 file changed, 4 insertions(+), 2 deletions(-)
> 
> diff --git a/block/blk-zoned.c b/block/blk-zoned.c
> index ea61ad7905c0..2180d5256f9f 100644
> --- a/block/blk-zoned.c
> +++ b/block/blk-zoned.c
> @@ -2305,8 +2305,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)

Reviewed-by: Hannes Reinecke <hare at suse.de>

Cheers,

Hannes
-- 
Dr. Hannes Reinecke                  Kernel Storage Architect
hare at suse.de                                +49 911 74053 688
SUSE Software Solutions GmbH, Frankenstr. 146, 90461 Nürnberg
HRB 36809 (AG Nürnberg), GF: I. Totev, A. McDonald, W. Knoblich



More information about the Linux-nvme mailing list