|
@@ -9,6 +9,8 @@
|
|
|
#ifndef LINUX_NFSD_STATS_H
|
|
#ifndef LINUX_NFSD_STATS_H
|
|
|
#define LINUX_NFSD_STATS_H
|
|
#define LINUX_NFSD_STATS_H
|
|
|
|
|
|
|
|
|
|
+#include <linux/nfs4.h>
|
|
|
|
|
+
|
|
|
struct nfsd_stats {
|
|
struct nfsd_stats {
|
|
|
unsigned int rchits; /* repcache hits */
|
|
unsigned int rchits; /* repcache hits */
|
|
|
unsigned int rcmisses; /* 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_size; /* size of ra cache */
|
|
|
unsigned int ra_depth[11]; /* number of times ra entry was found that deep
|
|
unsigned int ra_depth[11]; /* number of times ra entry was found that deep
|
|
|
* in the cache (10percentiles). [10] = not found */
|
|
* 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) */
|
|
/* thread usage wraps very million seconds (approx one fortnight) */
|