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