mballoc: Replace seq_printf with seq_puts
PATCH 1/1 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 <[email protected]>
--- fs/ext4/mballoc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
fs/ext4/mballoc.c +1 -1
@@ -2439,7 +2439,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 ; }
Signature · 1 line
2.17.1
Quoted 4 lines · Xu Wang
seq_putsis a lot cheaper thanseq_printf, so use that to print literal strings.Signed-off-by Xu Wang <[email protected]>
Looks good to me.
Reviewed-by Ritesh Harjani <[email protected]>
Quoted 4 lines · Xu Wang
seq_putsis a lot cheaper thanseq_printf, so use that to print literal strings.Signed-off-by Xu Wang <[email protected]>
Applied, thanks.
- Ted