Skip to contentSkip to conversation

xfs: Simplify data output in xfs_zoned_show_stats()

PATCH In review Markus Elfring 2 participants 3 messages Jun 4 – Jun 5

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

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
index 47b475e21af8..57e3acabeee4 100644
@@ -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
#1 lore raw
Quoted 5 lines · Markus Elfring

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.

Umm, no. Make the code much less redable for no real benefit.