summaryrefslogtreecommitdiff
path: root/fs/nfsd/stats.h
diff options
context:
space:
mode:
authorJosef Bacik <josef@toxicpanda.com>2024-01-26 10:39:48 -0500
committerChuck Lever <chuck.lever@oracle.com>2024-03-01 09:12:11 -0500
commite41ee44cc6a473b1f414031782c3b4283d7f3e5f (patch)
tree700cb1b2253796458da364def506e5c19b5d431d /fs/nfsd/stats.h
parent4b14885411f74b2b0ce0eb2b39d0fffe54e5ca0d (diff)
downloadlwn-e41ee44cc6a473b1f414031782c3b4283d7f3e5f.tar.gz
lwn-e41ee44cc6a473b1f414031782c3b4283d7f3e5f.zip
nfsd: remove nfsd_stats, make th_cnt a global counter
This is the last global stat, take it out of the nfsd_stats struct and make it a global part of nfsd, report it the same as always. Signed-off-by: Josef Bacik <josef@toxicpanda.com> Reviewed-by: Jeff Layton <jlayton@kernel.org> Signed-off-by: Chuck Lever <chuck.lever@oracle.com>
Diffstat (limited to 'fs/nfsd/stats.h')
-rw-r--r--fs/nfsd/stats.h6
1 files changed, 0 insertions, 6 deletions
diff --git a/fs/nfsd/stats.h b/fs/nfsd/stats.h
index c24be4ddbe7d..5675d283a537 100644
--- a/fs/nfsd/stats.h
+++ b/fs/nfsd/stats.h
@@ -10,12 +10,6 @@
#include <uapi/linux/nfsd/stats.h>
#include <linux/percpu_counter.h>
-struct nfsd_stats {
- atomic_t th_cnt; /* number of available threads */
-};
-
-extern struct nfsd_stats nfsdstats;
-
extern struct svc_stat nfsd_svcstats;
int nfsd_percpu_counters_init(struct percpu_counter *counters, int num);