diff options
author | Dai Ngo <dai.ngo@oracle.com> | 2022-07-16 01:54:52 +0200 |
---|---|---|
committer | Chuck Lever <chuck.lever@oracle.com> | 2022-07-30 02:16:56 +0200 |
commit | 0926c39515aa065a296e97dfc8790026f1e53f86 (patch) | |
tree | d41229407438cd7fa74de074dd1ab5224de6e14c /fs/nfsd/netns.h | |
parent | NFSD: refactoring v4 specific code to a helper in nfs4state.c (diff) | |
download | linux-0926c39515aa065a296e97dfc8790026f1e53f86.tar.xz linux-0926c39515aa065a296e97dfc8790026f1e53f86.zip |
NFSD: keep track of the number of v4 clients in the system
Add counter nfs4_client_count to keep track of the total number
of v4 clients, including courtesy clients, in the system.
Signed-off-by: Dai Ngo <dai.ngo@oracle.com>
Signed-off-by: Chuck Lever <chuck.lever@oracle.com>
Diffstat (limited to 'fs/nfsd/netns.h')
-rw-r--r-- | fs/nfsd/netns.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/fs/nfsd/netns.h b/fs/nfsd/netns.h index 1b1a962a1804..ce864f001a3e 100644 --- a/fs/nfsd/netns.h +++ b/fs/nfsd/netns.h @@ -189,6 +189,8 @@ struct nfsd_net { struct nfsd_fcache_disposal *fcache_disposal; siphash_key_t siphash_key; + + atomic_t nfs4_client_count; }; /* Simple check to find out if a given net was properly initialized */ |