]> git.kernelconcepts.de Git - karo-tx-linux.git/blobdiff - fs/nfsd/netns.h
ext4: don't allow quota mount options when quota feature enabled
[karo-tx-linux.git] / fs / nfsd / netns.h
index 9a98a0aeee684f288c06c4367b2aec1e0cbf113b..1051bebff1b0d5c0c1da8d82043506d7eca465d3 100644 (file)
@@ -35,6 +35,7 @@
 #define SESSION_HASH_SIZE      512
 
 struct cld_net;
+struct nfsd4_client_tracking_ops;
 
 struct nfsd_net {
        struct cld_net *cld_net;
@@ -71,9 +72,39 @@ struct nfsd_net {
        /*
         * client_lru holds client queue ordered by nfs4_client.cl_time
         * for lease renewal.
+        *
+        * close_lru holds (open) stateowner queue ordered by nfs4_stateowner.so_time
+        * for last close replay.
+        *
+        * All of the above fields are protected by the client_mutex.
         */
        struct list_head client_lru;
+       struct list_head close_lru;
+
+       struct delayed_work laundromat_work;
+
+       /* client_lock protects the client lru list and session hash table */
+       spinlock_t client_lock;
+
+       struct file *rec_file;
+       bool in_grace;
+       struct nfsd4_client_tracking_ops *client_tracking_ops;
+
+       time_t nfsd4_lease;
+       time_t nfsd4_grace;
+
+       bool nfsd_net_up;
+
+       /*
+        * Time of server startup
+        */
+       struct timeval nfssvc_boot;
+
+       struct svc_serv *nfsd_serv;
 };
 
+/* Simple check to find out if a given net was properly initialized */
+#define nfsd_netns_ready(nn) ((nn)->sessionid_hashtbl)
+
 extern int nfsd_net_id;
 #endif /* __NFSD_NETNS_H__ */