From: Xu Wang Date: Wed, 16 Sep 2020 05:39:18 +0000 (+0000) Subject: sunrpc: cache : Replace seq_printf with seq_puts X-Git-Url: http://git.maquefel.me/?a=commitdiff_plain;h=9dbc1f45d512f3a90c1df8ac35bcb7a4db548286;p=linux.git 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 Signed-off-by: J. Bruce Fields --- diff --git a/net/sunrpc/cache.c b/net/sunrpc/cache.c index baef5ee43dbbd..9e68e443f4971 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); }