xfs: Simplify data output in xfs_zoned_show_stats()
Subsystems (2)
PATCH 1/1 xfs: Simplify data output in xfs_zoned_show_stats()
From: Markus Elfring <[email protected]>
Date: Thu, 4 Jun 2026 11:16:01 +0200
Move the specification for a line break from a seq_puts() call to a seq_printf() call.
The source code was transformed by using the Coccinelle software.
--- fs/xfs/xfs_zone_info.c | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-)
fs/xfs/xfs_zone_info.c +2 -4
@@ -75,10 +75,8 @@ xfs_zoned_show_stats(struct xfs_zone_info *zi = mp->m_zone_info;struct xfs_open_zone *oz; -seq_puts (m,"\n" ); - -seq_printf (m,"\tuser free RT blocks: %lld\n" , -xfs_sum_freecounter (mp,XC_FREE_RTEXTENTS )); +seq_printf (m,"\n\tuser free RT blocks: %lld\n" , +xfs_sum_freecounter (mp,XC_FREE_RTEXTENTS ));seq_printf (m,"\treserved free RT blocks: %lld\n" , mp->m_free[XC_FREE_RTEXTENTS ].res_avail); seq_printf(m, "\tuser available RT blocks: %lld\n",
Signature · 1 line
2.54.0
Quoted 5 lines · Markus Elfring
From: Markus Elfring <[email protected]>
Date: Thu, 4 Jun 2026 11:16:01 +0200Move the specification for a line break from a
seq_puts()call to aseq_printf()call.
Umm, no. Make the code much less redable for no real benefit.
Quoted 4 lines
Quoted 2 lines
Move the specification for a line break from a
seq_puts()call to aseq_printf()call.Umm, no. Make the code much less redable for no real benefit.
Would you prefer to use a seq_putc() call instead at such a source code place?
https://elixir.bootlin.com/linux/v7.1-rc6/source/fs/xfs/xfs_zone_info.c#L78
Regards,
Markus