summaryrefslogtreecommitdiff
path: root/fs/nfsd/netns.h
diff options
context:
space:
mode:
authorDai Ngo <dai.ngo@oracle.com>2022-09-14 18:54:25 +0300
committerChuck Lever <chuck.lever@oracle.com>2022-09-26 21:02:41 +0300
commit3a4ea23d86a317c4b68b9a69d51f7e84e1e04357 (patch)
tree0f093a833704bab4fe76a752a034ff72cf813425 /fs/nfsd/netns.h
parent06981d560606ac48d61e5f4fff6738b925c93173 (diff)
downloadlinux-3a4ea23d86a317c4b68b9a69d51f7e84e1e04357.tar.xz
NFSD: keep track of the number of courtesy clients in the system
Add counter nfs4_courtesy_client_count to nfsd_net to keep track of the number of 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.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/fs/nfsd/netns.h b/fs/nfsd/netns.h
index ffe17743cc74..55c7006d6109 100644
--- a/fs/nfsd/netns.h
+++ b/fs/nfsd/netns.h
@@ -192,6 +192,8 @@ struct nfsd_net {
atomic_t nfs4_client_count;
int nfs4_max_clients;
+
+ atomic_t nfsd_courtesy_clients;
};
/* Simple check to find out if a given net was properly initialized */