Commit 9dbc1f45 authored by Xu Wang's avatar Xu Wang Committed by J. Bruce Fields

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: default avatarXu Wang <vulab@iscas.ac.cn>
Signed-off-by: default avatarJ. Bruce Fields <bfields@redhat.com>
parent 8c38b705
...@@ -1436,10 +1436,10 @@ static int c_show(struct seq_file *m, void *p) ...@@ -1436,10 +1436,10 @@ static int c_show(struct seq_file *m, void *p)
cache_get(cp); cache_get(cp);
if (cache_check(cd, cp, NULL)) if (cache_check(cd, cp, NULL))
/* cache_check does a cache_put on failure */ /* cache_check does a cache_put on failure */
seq_printf(m, "# "); seq_puts(m, "# ");
else { else {
if (cache_is_expired(cd, cp)) if (cache_is_expired(cd, cp))
seq_printf(m, "# "); seq_puts(m, "# ");
cache_put(cp, cd); cache_put(cp, cd);
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment