mirror of
https://github.com/torvalds/linux.git
synced 2024-11-29 23:51:37 +00:00
1b76d1df1a
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>
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 */
|