sunrpc: cache : 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>
Signed-off-by: J. Bruce Fields <bfields@redhat.com>
This commit is contained in:
Xu Wang 2020-09-16 05:39:18 +00:00 committed by J. Bruce Fields
parent 8c38b705b4
commit 9dbc1f45d5

View File

@ -1436,10 +1436,10 @@ static int c_show(struct seq_file *m, void *p)
cache_get(cp);
if (cache_check(cd, cp, NULL))
/* cache_check does a cache_put on failure */
seq_printf(m, "# ");
seq_puts(m, "# ");
else {
if (cache_is_expired(cd, cp))
seq_printf(m, "# ");
seq_puts(m, "# ");
cache_put(cp, cd);
}