summaryrefslogtreecommitdiff
path: root/fs/xfs
diff options
context:
space:
mode:
authorZeng Heng <zengheng4@huawei.com>2022-09-19 06:48:14 +1000
committerDave Chinner <david@fromorbit.com>2022-09-19 06:48:14 +1000
commit92b40768c1a4e01e776cb13ab5357a8b5c78e965 (patch)
treedcb294366edab91bf591390d4ae193ce55589bfc /fs/xfs
parent78b0f58bdfef45aa9f3c7fbbd9b4d41abad6d85f (diff)
xfs: replace unnecessary seq_printf with seq_puts
Replace seq_printf with seq_puts when const string in reference, which would avoid to deal with unnecessary string format. Signed-off-by: Zeng Heng <zengheng4@huawei.com> Reviewed-by: Darrick J. Wong <djwong@kernel.org> Signed-off-by: Dave Chinner <david@fromorbit.com>
Diffstat (limited to 'fs/xfs')
-rw-r--r--fs/xfs/xfs_stats.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/xfs/xfs_stats.c b/fs/xfs/xfs_stats.c
index 881720c4cf70..90a77cd3ebad 100644
--- a/fs/xfs/xfs_stats.c
+++ b/fs/xfs/xfs_stats.c
@@ -125,7 +125,7 @@ static int xqmstat_proc_show(struct seq_file *m, void *v)
{
int j;
- seq_printf(m, "qm");
+ seq_puts(m, "qm");
for (j = XFSSTAT_START_XQMSTAT; j < XFSSTAT_END_XQMSTAT; j++)
seq_printf(m, " %u", counter_val(xfsstats.xs_stats, j));
seq_putc(m, '\n');