summaryrefslogtreecommitdiffstats
path: root/fs
diff options
context:
space:
mode:
authorMarkus Elfring <elfring@users.sourceforge.net>2019-07-03 15:33:09 +0200
committerTrond Myklebust <trond.myklebust@hammerspace.com>2019-07-13 11:47:49 -0400
commit9bcaa35c686d65091e833f6c97a20baa31d0e870 (patch)
treec3e9a333e5d416f39595f96b2c8724e7723462d0 /fs
parentdb531db951f950b86d274cc8ed7b21b9e2240036 (diff)
downloadlinux-9bcaa35c686d65091e833f6c97a20baa31d0e870.tar.bz2
NFS: Use seq_putc() in nfs_show_stats()
A single character (line break) should be put into a sequence. Thus use the corresponding function “seq_putc”. This issue was detected by using the Coccinelle software. Signed-off-by: Markus Elfring <elfring@users.sourceforge.net> Signed-off-by: Trond Myklebust <trond.myklebust@hammerspace.com>
Diffstat (limited to 'fs')
-rw-r--r--fs/nfs/super.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/nfs/super.c b/fs/nfs/super.c
index d01def299d40..6f1749e70202 100644
--- a/fs/nfs/super.c
+++ b/fs/nfs/super.c
@@ -905,7 +905,7 @@ int nfs_show_stats(struct seq_file *m, struct dentry *root)
seq_printf(m, "%Lu ", totals.fscache[i]);
}
#endif
- seq_printf(m, "\n");
+ seq_putc(m, '\n');
rpc_clnt_show_stats(m, nfss->client);