summaryrefslogtreecommitdiff
path: root/net/sunrpc/cache.c
diff options
context:
space:
mode:
authorXu Wang <vulab@iscas.ac.cn>2020-09-16 08:39:18 +0300
committerJ. Bruce Fields <bfields@redhat.com>2020-09-26 01:01:28 +0300
commit9dbc1f45d512f3a90c1df8ac35bcb7a4db548286 (patch)
treee0abf7deec0c51ae28573557b7613bfe5761510c /net/sunrpc/cache.c
parent8c38b705b4f4ca4e7f9cc116141bc38391917c30 (diff)
downloadlinux-9dbc1f45d512f3a90c1df8ac35bcb7a4db548286.tar.xz
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>
Diffstat (limited to 'net/sunrpc/cache.c')
-rw-r--r--net/sunrpc/cache.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/net/sunrpc/cache.c b/net/sunrpc/cache.c
index baef5ee43dbb..9e68e443f497 100644
--- a/net/sunrpc/cache.c
+++ b/net/sunrpc/cache.c
@@ -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);
}