diff options
Diffstat (limited to 'include/linux/nfs_fs_sb.h')
-rw-r--r-- | include/linux/nfs_fs_sb.h | 14 |
1 files changed, 6 insertions, 8 deletions
diff --git a/include/linux/nfs_fs_sb.h b/include/linux/nfs_fs_sb.h index b197563913bf..216cea5db0aa 100644 --- a/include/linux/nfs_fs_sb.h +++ b/include/linux/nfs_fs_sb.h | |||
@@ -30,6 +30,8 @@ struct nfs_client { | |||
30 | #define NFS_CS_CALLBACK 1 /* - callback started */ | 30 | #define NFS_CS_CALLBACK 1 /* - callback started */ |
31 | #define NFS_CS_IDMAP 2 /* - idmap started */ | 31 | #define NFS_CS_IDMAP 2 /* - idmap started */ |
32 | #define NFS_CS_RENEWD 3 /* - renewd started */ | 32 | #define NFS_CS_RENEWD 3 /* - renewd started */ |
33 | #define NFS_CS_STOP_RENEW 4 /* no more state to renew */ | ||
34 | #define NFS_CS_CHECK_LEASE_TIME 5 /* need to check lease time */ | ||
33 | struct sockaddr_storage cl_addr; /* server identifier */ | 35 | struct sockaddr_storage cl_addr; /* server identifier */ |
34 | size_t cl_addrlen; | 36 | size_t cl_addrlen; |
35 | char * cl_hostname; /* hostname of server */ | 37 | char * cl_hostname; /* hostname of server */ |
@@ -68,19 +70,14 @@ struct nfs_client { | |||
68 | unsigned char cl_id_uniquifier; | 70 | unsigned char cl_id_uniquifier; |
69 | u32 cl_cb_ident; /* v4.0 callback identifier */ | 71 | u32 cl_cb_ident; /* v4.0 callback identifier */ |
70 | const struct nfs4_minor_version_ops *cl_mvops; | 72 | const struct nfs4_minor_version_ops *cl_mvops; |
71 | #endif /* CONFIG_NFS_V4 */ | ||
72 | 73 | ||
73 | #ifdef CONFIG_NFS_V4_1 | ||
74 | /* clientid returned from EXCHANGE_ID, used by session operations */ | ||
75 | u64 cl_ex_clid; | ||
76 | /* The sequence id to use for the next CREATE_SESSION */ | 74 | /* The sequence id to use for the next CREATE_SESSION */ |
77 | u32 cl_seqid; | 75 | u32 cl_seqid; |
78 | /* The flags used for obtaining the clientid during EXCHANGE_ID */ | 76 | /* The flags used for obtaining the clientid during EXCHANGE_ID */ |
79 | u32 cl_exchange_flags; | 77 | u32 cl_exchange_flags; |
80 | struct nfs4_session *cl_session; /* sharred session */ | 78 | struct nfs4_session *cl_session; /* sharred session */ |
81 | struct list_head cl_layouts; | 79 | struct list_head cl_layouts; |
82 | struct pnfs_deviceid_cache *cl_devid_cache; /* pNFS deviceid cache */ | 80 | #endif /* CONFIG_NFS_V4 */ |
83 | #endif /* CONFIG_NFS_V4_1 */ | ||
84 | 81 | ||
85 | #ifdef CONFIG_NFS_FSCACHE | 82 | #ifdef CONFIG_NFS_FSCACHE |
86 | struct fscache_cookie *fscache; /* client index cache cookie */ | 83 | struct fscache_cookie *fscache; /* client index cache cookie */ |
@@ -180,12 +177,13 @@ struct nfs_server { | |||
180 | #define NFS_CAP_CTIME (1U << 12) | 177 | #define NFS_CAP_CTIME (1U << 12) |
181 | #define NFS_CAP_MTIME (1U << 13) | 178 | #define NFS_CAP_MTIME (1U << 13) |
182 | #define NFS_CAP_POSIX_LOCK (1U << 14) | 179 | #define NFS_CAP_POSIX_LOCK (1U << 14) |
180 | #define NFS_CAP_UIDGID_NOMAP (1U << 15) | ||
183 | 181 | ||
184 | 182 | ||
185 | /* maximum number of slots to use */ | 183 | /* maximum number of slots to use */ |
186 | #define NFS4_MAX_SLOT_TABLE RPC_MAX_SLOT_TABLE | 184 | #define NFS4_MAX_SLOT_TABLE RPC_MAX_SLOT_TABLE |
187 | 185 | ||
188 | #if defined(CONFIG_NFS_V4_1) | 186 | #if defined(CONFIG_NFS_V4) |
189 | 187 | ||
190 | /* Sessions */ | 188 | /* Sessions */ |
191 | #define SLOT_TABLE_SZ (NFS4_MAX_SLOT_TABLE/(8*sizeof(long))) | 189 | #define SLOT_TABLE_SZ (NFS4_MAX_SLOT_TABLE/(8*sizeof(long))) |
@@ -225,5 +223,5 @@ struct nfs4_session { | |||
225 | struct nfs_client *clp; | 223 | struct nfs_client *clp; |
226 | }; | 224 | }; |
227 | 225 | ||
228 | #endif /* CONFIG_NFS_V4_1 */ | 226 | #endif /* CONFIG_NFS_V4 */ |
229 | #endif | 227 | #endif |