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