Orange Pi5 kernel

Deprecated Linux kernel 5.10.110 for OrangePi 5/5B/5+ boards

3 Commits   0 Branches   0 Tags
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  1) /* SPDX-License-Identifier: GPL-2.0 */
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  2) /*
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  3)  * Statistics for NFS server.
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  4)  *
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  5)  * Copyright (C) 1995, 1996 Olaf Kirch <okir@monad.swb.de>
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  6)  */
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  7) #ifndef _NFSD_STATS_H
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  8) #define _NFSD_STATS_H
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  9) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 10) #include <uapi/linux/nfsd/stats.h>
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 11) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 12) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 13) struct nfsd_stats {
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 14) 	unsigned int	rchits;		/* repcache hits */
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 15) 	unsigned int	rcmisses;	/* repcache hits */
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 16) 	unsigned int	rcnocache;	/* uncached reqs */
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 17) 	unsigned int	fh_stale;	/* FH stale error */
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 18) 	unsigned int	fh_lookup;	/* dentry cached */
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 19) 	unsigned int	fh_anon;	/* anon file dentry returned */
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 20) 	unsigned int	fh_nocache_dir;	/* filehandle not found in dcache */
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 21) 	unsigned int	fh_nocache_nondir;	/* filehandle not found in dcache */
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 22) 	unsigned int	io_read;	/* bytes returned to read requests */
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 23) 	unsigned int	io_write;	/* bytes passed in write requests */
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 24) 	unsigned int	th_cnt;		/* number of available threads */
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 25) 	unsigned int	th_usage[10];	/* number of ticks during which n perdeciles
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 26) 					 * of available threads were in use */
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 27) 	unsigned int	th_fullcnt;	/* number of times last free thread was used */
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 28) 	unsigned int	ra_size;	/* size of ra cache */
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 29) 	unsigned int	ra_depth[11];	/* number of times ra entry was found that deep
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 30) 					 * in the cache (10percentiles). [10] = not found */
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 31) #ifdef CONFIG_NFSD_V4
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 32) 	unsigned int	nfs4_opcount[LAST_NFS4_OP + 1];	/* count of individual nfsv4 operations */
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 33) #endif
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 34) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 35) };
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 36) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 37) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 38) extern struct nfsd_stats	nfsdstats;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 39) extern struct svc_stat		nfsd_svcstats;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 40) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 41) void	nfsd_stat_init(void);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 42) void	nfsd_stat_shutdown(void);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 43) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 44) #endif /* _NFSD_STATS_H */