projects
/
platform
/
kernel
/
linux-starfive.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
dddcd2f
)
mballoc: replace seq_printf with seq_puts
author
Xu Wang
<vulab@iscas.ac.cn>
Mon, 10 Aug 2020 02:21:58 +0000
(
02:21
+0000)
committer
Theodore Ts'o
<tytso@mit.edu>
Tue, 18 Aug 2020 18:21:59 +0000
(14:21 -0400)
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>
fs/ext4/mballoc.c
patch
|
blob
|
history
diff --git
a/fs/ext4/mballoc.c
b/fs/ext4/mballoc.c
index f68730eec2055abf806a4522597aa8516ff53bbd..51e2fe6094bea344d65b31ccda3edfb6e3411d54 100644
(file)
--- 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_p
rintf
(seq, " ]\n");
+ seq_p
uts
(seq, " ]\n");
return 0;
}