1
2
3
4
5
6
7
8
9#ifndef LINUX_NFSD_STATS_H
10#define LINUX_NFSD_STATS_H
11
12#include <linux/nfs4.h>
13
14
15#define NFSD_USAGE_WRAP (HZ*1000000)
16
17#ifdef __KERNEL__
18
19struct nfsd_stats {
20 unsigned int rchits;
21 unsigned int rcmisses;
22 unsigned int rcnocache;
23 unsigned int fh_stale;
24 unsigned int fh_lookup;
25 unsigned int fh_anon;
26 unsigned int fh_nocache_dir;
27 unsigned int fh_nocache_nondir;
28 unsigned int io_read;
29 unsigned int io_write;
30 unsigned int th_cnt;
31 unsigned int th_usage[10];
32
33 unsigned int th_fullcnt;
34 unsigned int ra_size;
35 unsigned int ra_depth[11];
36
37#ifdef CONFIG_NFSD_V4
38 unsigned int nfs4_opcount[LAST_NFS4_OP + 1];
39#endif
40
41};
42
43
44extern struct nfsd_stats nfsdstats;
45extern struct svc_stat nfsd_svcstats;
46
47void nfsd_stat_init(void);
48void nfsd_stat_shutdown(void);
49
50#endif
51#endif
52