nfsd: make all of the nfsd stats per-network namespace
authorJosef Bacik <josef@toxicpanda.com>
Fri, 26 Jan 2024 15:39:47 +0000 (10:39 -0500)
committerChuck Lever <chuck.lever@oracle.com>
Fri, 1 Mar 2024 14:12:10 +0000 (09:12 -0500)
commit4b14885411f74b2b0ce0eb2b39d0fffe54e5ca0d
tree4317bd5500a400fb05e98fd5d00ac92265a8cc76
parent93483ac5fec62cc1de166051b219d953bb5e4ef4
nfsd: make all of the nfsd stats per-network namespace

We have a global set of counters that we modify for all of the nfsd
operations, but now that we're exposing these stats across all network
namespaces we need to make the stats also be per-network namespace.  We
already have some caching stats that are per-network namespace, so move
these definitions into the same counter and then adjust all the helpers
and users of these stats to provide the appropriate nfsd_net struct so
that the stats are maintained for the per-network namespace objects.

Signed-off-by: Josef Bacik <josef@toxicpanda.com>
Reviewed-by: Jeff Layton <jlayton@kernel.org>
Signed-off-by: Chuck Lever <chuck.lever@oracle.com>
fs/nfsd/cache.h
fs/nfsd/netns.h
fs/nfsd/nfs4proc.c
fs/nfsd/nfs4state.c
fs/nfsd/nfscache.c
fs/nfsd/nfsctl.c
fs/nfsd/nfsfh.c
fs/nfsd/stats.c
fs/nfsd/stats.h
fs/nfsd/vfs.c