Skip to content

Commit 9dbc1f4

Browse files
ISCAS-VulabJ. Bruce Fields
authored andcommitted
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>
1 parent 8c38b70 commit 9dbc1f4

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

‎net/sunrpc/cache.c‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1436,10 +1436,10 @@ static int c_show(struct seq_file *m, void *p)
14361436
cache_get(cp);
14371437
if (cache_check(cd, cp, NULL))
14381438
/* cache_check does a cache_put on failure */
1439-
seq_printf(m, "# ");
1439+
seq_puts(m, "# ");
14401440
else {
14411441
if (cache_is_expired(cd, cp))
1442-
seq_printf(m, "# ");
1442+
seq_puts(m, "# ");
14431443
cache_put(cp, cd);
14441444
}
14451445

0 commit comments

Comments
 (0)