diff options
author | Trond Myklebust <Trond.Myklebust@netapp.com> | 2012-11-26 14:20:49 -0500 |
---|---|---|
committer | Trond Myklebust <Trond.Myklebust@netapp.com> | 2012-12-05 18:30:46 -0500 |
commit | 76e697ba7e8d187f50e385d21a2b2f1709a62c14 (patch) | |
tree | 2270645beb0b0c44079d98107bab61943e3f4d31 /include/linux/nfs_fs_sb.h | |
parent | c34309a45ea491e5f0c0d0af49ccfa018ff35fc1 (diff) |
NFSv4.1: Move slot table and session struct definitions to nfs4session.h
Clean up. Gather NFSv4.1 slot definitions in fs/nfs/nfs4session.h.
Signed-off-by: Trond Myklebust <Trond.Myklebust@netapp.com>
Diffstat (limited to 'include/linux/nfs_fs_sb.h')
-rw-r--r-- | include/linux/nfs_fs_sb.h | 49 |
1 files changed, 0 insertions, 49 deletions
diff --git a/include/linux/nfs_fs_sb.h b/include/linux/nfs_fs_sb.h index e707c1b69796..6c6ed153a9b4 100644 --- a/include/linux/nfs_fs_sb.h +++ b/include/linux/nfs_fs_sb.h | |||
@@ -198,53 +198,4 @@ struct nfs_server { | |||
198 | #define NFS_CAP_POSIX_LOCK (1U << 14) | 198 | #define NFS_CAP_POSIX_LOCK (1U << 14) |
199 | #define NFS_CAP_UIDGID_NOMAP (1U << 15) | 199 | #define NFS_CAP_UIDGID_NOMAP (1U << 15) |
200 | 200 | ||
201 | |||
202 | /* maximum number of slots to use */ | ||
203 | #define NFS4_DEF_SLOT_TABLE_SIZE (16U) | ||
204 | #define NFS4_MAX_SLOT_TABLE (256U) | ||
205 | #define NFS4_NO_SLOT ((u32)-1) | ||
206 | |||
207 | #if IS_ENABLED(CONFIG_NFS_V4) | ||
208 | |||
209 | /* Sessions */ | ||
210 | #define SLOT_TABLE_SZ DIV_ROUND_UP(NFS4_MAX_SLOT_TABLE, 8*sizeof(long)) | ||
211 | struct nfs4_slot_table { | ||
212 | struct nfs4_session *session; /* Parent session */ | ||
213 | struct nfs4_slot *slots; /* seqid per slot */ | ||
214 | unsigned long used_slots[SLOT_TABLE_SZ]; /* used/unused bitmap */ | ||
215 | spinlock_t slot_tbl_lock; | ||
216 | struct rpc_wait_queue slot_tbl_waitq; /* allocators may wait here */ | ||
217 | u32 max_slots; /* # slots in table */ | ||
218 | u32 max_slotid; /* Max allowed slotid value */ | ||
219 | u32 highest_used_slotid; /* sent to server on each SEQ. | ||
220 | * op for dynamic resizing */ | ||
221 | u32 target_highest_slotid; /* Server max_slot target */ | ||
222 | u32 server_highest_slotid; /* Server highest slotid */ | ||
223 | unsigned long generation; /* Generation counter for | ||
224 | target_highest_slotid */ | ||
225 | struct completion complete; | ||
226 | }; | ||
227 | |||
228 | /* | ||
229 | * Session related parameters | ||
230 | */ | ||
231 | struct nfs4_session { | ||
232 | struct nfs4_sessionid sess_id; | ||
233 | u32 flags; | ||
234 | unsigned long session_state; | ||
235 | u32 hash_alg; | ||
236 | u32 ssv_len; | ||
237 | |||
238 | /* The fore and back channel */ | ||
239 | struct nfs4_channel_attrs fc_attrs; | ||
240 | struct nfs4_slot_table fc_slot_table; | ||
241 | struct nfs4_channel_attrs bc_attrs; | ||
242 | struct nfs4_slot_table bc_slot_table; | ||
243 | struct nfs_client *clp; | ||
244 | /* Create session arguments */ | ||
245 | unsigned int fc_target_max_rqst_sz; | ||
246 | unsigned int fc_target_max_resp_sz; | ||
247 | }; | ||
248 | |||
249 | #endif /* CONFIG_NFS_V4 */ | ||
250 | #endif | 201 | #endif |