summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorXu Wang <vulab@iscas.ac.cn>2020-08-10 04:21:58 +0200
committerTheodore Ts'o <tytso@mit.edu>2020-08-18 20:21:59 +0200
commite0d438c72abe0cb000d67c0795b0341f9e763836 (patch)
tree101c0612ef0f03653eeb4d2e4a69f73f5bfe94ff
parentext4: optimize the implementation of ext4_mb_good_group() (diff)
downloadlinux-e0d438c72abe0cb000d67c0795b0341f9e763836.tar.xz
linux-e0d438c72abe0cb000d67c0795b0341f9e763836.zip
mballoc: replace seq_printf with seq_puts
seq_puts is a lot cheaper than seq_printf, so use that to print literal strings. Signed-off-by: Xu Wang <vulab@iscas.ac.cn> Reviewed-by: Ritesh Harjani <riteshh@linux.ibm.com> Link: https://lore.kernel.org/r/20200810022158.9167-1-vulab@iscas.ac.cn Signed-off-by: Theodore Ts'o <tytso@mit.edu>
-rw-r--r--fs/ext4/mballoc.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/ext4/mballoc.c b/fs/ext4/mballoc.c
index f68730eec205..51e2fe6094be 100644
--- a/fs/ext4/mballoc.c
+++ b/fs/ext4/mballoc.c
@@ -2558,7 +2558,7 @@ static int ext4_mb_seq_groups_show(struct seq_file *seq, void *v)
for (i = 0; i <= 13; i++)
seq_printf(seq, " %-5u", i <= blocksize_bits + 1 ?
sg.info.bb_counters[i] : 0);
- seq_printf(seq, " ]\n");
+ seq_puts(seq, " ]\n");
return 0;
}