
[ Upstream commit 1b76d1df1a3683b6b23cd1c813d13c5e6a9d35e5 ] Commit501cb1849f
("nfsd: rip out the raparms cache") removed the code that updates read-ahead cache stats counters, commit8bbfa9f388
("knfsd: remove the nfsd thread busy histogram") removed code that updates the thread busy stats counters back in 2009 and code that updated filehandle cache stats was removed back in 2002. Remove the unused stats counters from nfsd_stats struct and print hardcoded zeros in /proc/net/rpc/nfsd. Signed-off-by: Amir Goldstein <amir73il@gmail.com> Signed-off-by: Chuck Lever <chuck.lever@oracle.com> Signed-off-by: Sasha Levin <sashal@kernel.org>
35 lines
882 B
C
35 lines
882 B
C
/* SPDX-License-Identifier: GPL-2.0 */
|
|
/*
|
|
* Statistics for NFS server.
|
|
*
|
|
* Copyright (C) 1995, 1996 Olaf Kirch <okir@monad.swb.de>
|
|
*/
|
|
#ifndef _NFSD_STATS_H
|
|
#define _NFSD_STATS_H
|
|
|
|
#include <uapi/linux/nfsd/stats.h>
|
|
|
|
|
|
struct nfsd_stats {
|
|
unsigned int rchits; /* repcache hits */
|
|
unsigned int rcmisses; /* repcache hits */
|
|
unsigned int rcnocache; /* uncached reqs */
|
|
unsigned int fh_stale; /* FH stale error */
|
|
unsigned int io_read; /* bytes returned to read requests */
|
|
unsigned int io_write; /* bytes passed in write requests */
|
|
unsigned int th_cnt; /* number of available threads */
|
|
#ifdef CONFIG_NFSD_V4
|
|
unsigned int nfs4_opcount[LAST_NFS4_OP + 1]; /* count of individual nfsv4 operations */
|
|
#endif
|
|
|
|
};
|
|
|
|
|
|
extern struct nfsd_stats nfsdstats;
|
|
extern struct svc_stat nfsd_svcstats;
|
|
|
|
void nfsd_stat_init(void);
|
|
void nfsd_stat_shutdown(void);
|
|
|
|
#endif /* _NFSD_STATS_H */
|