aboutsummaryrefslogtreecommitdiffstats
path: root/net/sunrpc/cache.c
diff options
context:
space:
mode:
authorXu Wang <vulab@iscas.ac.cn>2020-09-16 05:39:18 +0000
committerJ. Bruce Fields <bfields@redhat.com>2020-09-25 18:01:28 -0400
commit9dbc1f45d512f3a90c1df8ac35bcb7a4db548286 (patch)
treee0abf7deec0c51ae28573557b7613bfe5761510c /net/sunrpc/cache.c
parentsilence nfscache allocation warnings with kvzalloc (diff)
downloadlinux-dev-9dbc1f45d512f3a90c1df8ac35bcb7a4db548286.tar.xz
linux-dev-9dbc1f45d512f3a90c1df8ac35bcb7a4db548286.zip
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);
}