diff options
Diffstat (limited to 'fs/nfsd/netns.h')
-rw-r--r-- | fs/nfsd/netns.h | 23 |
1 files changed, 16 insertions, 7 deletions
diff --git a/fs/nfsd/netns.h b/fs/nfsd/netns.h index d32b3aa6600d..ea6749a32760 100644 --- a/fs/nfsd/netns.h +++ b/fs/nfsd/netns.h | |||
@@ -29,14 +29,19 @@ | |||
29 | #define CLIENT_HASH_SIZE (1 << CLIENT_HASH_BITS) | 29 | #define CLIENT_HASH_SIZE (1 << CLIENT_HASH_BITS) |
30 | #define CLIENT_HASH_MASK (CLIENT_HASH_SIZE - 1) | 30 | #define CLIENT_HASH_MASK (CLIENT_HASH_SIZE - 1) |
31 | 31 | ||
32 | #define LOCKOWNER_INO_HASH_BITS 8 | ||
33 | #define LOCKOWNER_INO_HASH_SIZE (1 << LOCKOWNER_INO_HASH_BITS) | ||
34 | |||
35 | #define SESSION_HASH_SIZE 512 | 32 | #define SESSION_HASH_SIZE 512 |
36 | 33 | ||
37 | struct cld_net; | 34 | struct cld_net; |
38 | struct nfsd4_client_tracking_ops; | 35 | struct nfsd4_client_tracking_ops; |
39 | 36 | ||
37 | /* | ||
38 | * Represents a nfsd "container". With respect to nfsv4 state tracking, the | ||
39 | * fields of interest are the *_id_hashtbls and the *_name_tree. These track | ||
40 | * the nfs4_client objects by either short or long form clientid. | ||
41 | * | ||
42 | * Each nfsd_net runs a nfs4_laundromat workqueue job when necessary to clean | ||
43 | * up expired clients and delegations within the container. | ||
44 | */ | ||
40 | struct nfsd_net { | 45 | struct nfsd_net { |
41 | struct cld_net *cld_net; | 46 | struct cld_net *cld_net; |
42 | 47 | ||
@@ -66,8 +71,6 @@ struct nfsd_net { | |||
66 | struct rb_root conf_name_tree; | 71 | struct rb_root conf_name_tree; |
67 | struct list_head *unconf_id_hashtbl; | 72 | struct list_head *unconf_id_hashtbl; |
68 | struct rb_root unconf_name_tree; | 73 | struct rb_root unconf_name_tree; |
69 | struct list_head *ownerstr_hashtbl; | ||
70 | struct list_head *lockowner_ino_hashtbl; | ||
71 | struct list_head *sessionid_hashtbl; | 74 | struct list_head *sessionid_hashtbl; |
72 | /* | 75 | /* |
73 | * client_lru holds client queue ordered by nfs4_client.cl_time | 76 | * client_lru holds client queue ordered by nfs4_client.cl_time |
@@ -97,10 +100,16 @@ struct nfsd_net { | |||
97 | bool nfsd_net_up; | 100 | bool nfsd_net_up; |
98 | bool lockd_up; | 101 | bool lockd_up; |
99 | 102 | ||
103 | /* Time of server startup */ | ||
104 | struct timeval nfssvc_boot; | ||
105 | |||
100 | /* | 106 | /* |
101 | * Time of server startup | 107 | * Max number of connections this nfsd container will allow. Defaults |
108 | * to '0' which is means that it bases this on the number of threads. | ||
102 | */ | 109 | */ |
103 | struct timeval nfssvc_boot; | 110 | unsigned int max_connections; |
111 | |||
112 | u32 clientid_counter; | ||
104 | 113 | ||
105 | struct svc_serv *nfsd_serv; | 114 | struct svc_serv *nfsd_serv; |
106 | }; | 115 | }; |