summaryrefslogtreecommitdiffstats
path: root/include/linux/nfsd/stats.h
diff options
context:
space:
mode:
authorShankar Anand2006-07-10 13:45:44 +0200
committerLinus Torvalds2006-07-10 22:24:27 +0200
commite2b209509ca33743864846aef2e1b2afc21f7915 (patch)
tree19e7ed73049af78d6c605b326cc433034a2cd50c /include/linux/nfsd/stats.h
parent[PATCH] isdn: cleanup i_rdev udage (diff)
downloadkernel-qcow2-linux-e2b209509ca33743864846aef2e1b2afc21f7915.tar.gz
kernel-qcow2-linux-e2b209509ca33743864846aef2e1b2afc21f7915.tar.xz
kernel-qcow2-linux-e2b209509ca33743864846aef2e1b2afc21f7915.zip
[PATCH] knfsd: nfsd4: add per-operation server stats
Add an nfs4 operations count array to nfsd_stats structure. The count is incremented in nfsd4_proc_compound() where all the operations are handled by the nfsv4 server. This count of individual nfsv4 operations is also entered into /proc filesystem. Signed-off-by: Shankar Anand<shanand@novell.com> Signed-off-by: Neil Brown <neilb@suse.de> Signed-off-by: Andrew Morton <akpm@osdl.org> Signed-off-by: Linus Torvalds <torvalds@osdl.org>
Diffstat (limited to 'include/linux/nfsd/stats.h')
-rw-r--r--include/linux/nfsd/stats.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/include/linux/nfsd/stats.h b/include/linux/nfsd/stats.h
index b6f1e0cda4f2..28a82fdd922f 100644
--- a/include/linux/nfsd/stats.h
+++ b/include/linux/nfsd/stats.h
@@ -9,6 +9,8 @@
#ifndef LINUX_NFSD_STATS_H
#define LINUX_NFSD_STATS_H
+#include <linux/nfs4.h>
+
struct nfsd_stats {
unsigned int rchits; /* repcache hits */
unsigned int rcmisses; /* repcache hits */
@@ -27,6 +29,10 @@ struct nfsd_stats {
unsigned int ra_size; /* size of ra cache */
unsigned int ra_depth[11]; /* number of times ra entry was found that deep
* in the cache (10percentiles). [10] = not found */
+#ifdef CONFIG_NFSD_V4
+ unsigned int nfs4_opcount[LAST_NFS4_OP + 1]; /* count of individual nfsv4 operations */
+#endif
+
};
/* thread usage wraps very million seconds (approx one fortnight) */