diff options
author | Xu Wang <vulab@iscas.ac.cn> | 2020-09-16 08:39:18 +0300 |
---|---|---|
committer | J. Bruce Fields <bfields@redhat.com> | 2020-09-26 01:01:28 +0300 |
commit | 9dbc1f45d512f3a90c1df8ac35bcb7a4db548286 (patch) | |
tree | e0abf7deec0c51ae28573557b7613bfe5761510c /net/sunrpc | |
parent | 8c38b705b4f4ca4e7f9cc116141bc38391917c30 (diff) | |
download | linux-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')
-rw-r--r-- | net/sunrpc/cache.c | 4 |
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); } |