diff options
Diffstat (limited to 'fs/nfsd/state.h')
-rw-r--r-- | fs/nfsd/state.h | 14 |
1 files changed, 13 insertions, 1 deletions
diff --git a/fs/nfsd/state.h b/fs/nfsd/state.h index ee42a0beecfa..cfd743ea4b79 100644 --- a/fs/nfsd/state.h +++ b/fs/nfsd/state.h | |||
@@ -166,7 +166,7 @@ struct nfsd4_session { | |||
166 | struct list_head se_hash; /* hash by sessionid */ | 166 | struct list_head se_hash; /* hash by sessionid */ |
167 | struct list_head se_perclnt; | 167 | struct list_head se_perclnt; |
168 | u32 se_flags; | 168 | u32 se_flags; |
169 | struct nfs4_client *se_client; /* for expire_client */ | 169 | struct nfs4_client *se_client; |
170 | struct nfs4_sessionid se_sessionid; | 170 | struct nfs4_sessionid se_sessionid; |
171 | struct nfsd4_channel_attrs se_fchannel; | 171 | struct nfsd4_channel_attrs se_fchannel; |
172 | struct nfsd4_channel_attrs se_bchannel; | 172 | struct nfsd4_channel_attrs se_bchannel; |
@@ -244,6 +244,18 @@ struct nfs4_client { | |||
244 | /* wait here for slots */ | 244 | /* wait here for slots */ |
245 | }; | 245 | }; |
246 | 246 | ||
247 | static inline void | ||
248 | mark_client_expired(struct nfs4_client *clp) | ||
249 | { | ||
250 | clp->cl_time = 0; | ||
251 | } | ||
252 | |||
253 | static inline bool | ||
254 | is_client_expired(struct nfs4_client *clp) | ||
255 | { | ||
256 | return clp->cl_time == 0; | ||
257 | } | ||
258 | |||
247 | /* struct nfs4_client_reset | 259 | /* struct nfs4_client_reset |
248 | * one per old client. Populates reset_str_hashtbl. Filled from conf_id_hashtbl | 260 | * one per old client. Populates reset_str_hashtbl. Filled from conf_id_hashtbl |
249 | * upon lease reset, or from upcall to state_daemon (to read in state | 261 | * upon lease reset, or from upcall to state_daemon (to read in state |