summaryrefslogtreecommitdiffstats
path: root/fs/nfs/super.c
diff options
context:
space:
mode:
authorTuo Chen Peng <tpeng@nvidia.com>2017-06-07 08:42:44 +0200
committerAnna Schumaker <Anna.Schumaker@Netapp.com>2017-07-13 21:58:27 +0200
commitce85bd29210f2cd84dc1f762c3992d8e6db822c2 (patch)
treecbdf7f8319d4d8a0c764ac220a3e5fb946308470 /fs/nfs/super.c
parentNFS: Fix initialization of nfs_page_array->npages (diff)
downloadlinux-ce85bd29210f2cd84dc1f762c3992d8e6db822c2.tar.xz
linux-ce85bd29210f2cd84dc1f762c3992d8e6db822c2.zip
nfs: Fix fscache stat printing in nfs_show_stats()
nfs_show_stats() was incorrectly reading statistics for bytes when printing that for fsc. It caused files like /proc/self/mountstats to report incorrect fsc statistics for NFS mounts. Signed-off-by: Tuo Chen Peng <tpeng@nvidia.com> Signed-off-by: Anna Schumaker <Anna.Schumaker@Netapp.com>
Diffstat (limited to '')
-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 eceb4eabb064..b4176393f049 100644
--- a/fs/nfs/super.c
+++ b/fs/nfs/super.c
@@ -879,7 +879,7 @@ int nfs_show_stats(struct seq_file *m, struct dentry *root)
if (nfss->options & NFS_OPTION_FSCACHE) {
seq_printf(m, "\n\tfsc:\t");
for (i = 0; i < __NFSIOS_FSCACHEMAX; i++)
- seq_printf(m, "%Lu ", totals.bytes[i]);
+ seq_printf(m, "%Lu ", totals.fscache[i]);
}
#endif
seq_printf(m, "\n");