diff options
author | Josef Bacik <josef@toxicpanda.com> | 2024-01-26 18:39:48 +0300 |
---|---|---|
committer | Chuck Lever <chuck.lever@oracle.com> | 2024-03-01 17:12:11 +0300 |
commit | e41ee44cc6a473b1f414031782c3b4283d7f3e5f (patch) | |
tree | 700cb1b2253796458da364def506e5c19b5d431d /fs/nfsd/stats.c | |
parent | 4b14885411f74b2b0ce0eb2b39d0fffe54e5ca0d (diff) | |
download | linux-e41ee44cc6a473b1f414031782c3b4283d7f3e5f.tar.xz |
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.c')
-rw-r--r-- | fs/nfsd/stats.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/fs/nfsd/stats.c b/fs/nfsd/stats.c index 44e275324b06..3a7f791c3052 100644 --- a/fs/nfsd/stats.c +++ b/fs/nfsd/stats.c @@ -27,7 +27,6 @@ #include "nfsd.h" -struct nfsd_stats nfsdstats; struct svc_stat nfsd_svcstats = { .program = &nfsd_program, }; @@ -47,7 +46,7 @@ static int nfsd_show(struct seq_file *seq, void *v) percpu_counter_sum_positive(&nn->counter[NFSD_STATS_IO_WRITE])); /* thread usage: */ - seq_printf(seq, "th %u 0", atomic_read(&nfsdstats.th_cnt)); + seq_printf(seq, "th %u 0", atomic_read(&nfsd_th_cnt)); /* deprecated thread usage histogram stats */ for (i = 0; i < 10; i++) |