diff options
| author | Peng Tao <tao.peng@primarydata.com> | 2014-05-30 06:15:57 -0400 |
|---|---|---|
| committer | Tom Haynes <loghyr@primarydata.com> | 2015-02-03 14:06:34 -0500 |
| commit | 1a04c6e1a26a43305fe124a0978a3e4be861af89 (patch) | |
| tree | 9ea569914b07094f45cf45c45e92a883eec07386 /include/linux | |
| parent | 39280a5ae8443dcc1ab3bb5ebc205aab0855b849 (diff) | |
nfsv3: introduce nfs3_set_ds_client
The flexfiles layout wants to create DS connection over NFSv3.
Add nfs3_set_ds_client to allow that to happen.
Signed-off-by: Peng Tao <tao.peng@primarydata.com>
Signed-off-by: Tom Haynes <Thomas.Haynes@primarydata.com>
Diffstat (limited to 'include/linux')
| -rw-r--r-- | include/linux/nfs_fs_sb.h | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/include/linux/nfs_fs_sb.h b/include/linux/nfs_fs_sb.h index ddea982355f3..5e1273d4de14 100644 --- a/include/linux/nfs_fs_sb.h +++ b/include/linux/nfs_fs_sb.h | |||
| @@ -77,10 +77,6 @@ struct nfs_client { | |||
| 77 | /* Client owner identifier */ | 77 | /* Client owner identifier */ |
| 78 | const char * cl_owner_id; | 78 | const char * cl_owner_id; |
| 79 | 79 | ||
| 80 | /* Our own IP address, as a null-terminated string. | ||
| 81 | * This is used to generate the mv0 callback address. | ||
| 82 | */ | ||
| 83 | char cl_ipaddr[48]; | ||
| 84 | u32 cl_cb_ident; /* v4.0 callback identifier */ | 80 | u32 cl_cb_ident; /* v4.0 callback identifier */ |
| 85 | const struct nfs4_minor_version_ops *cl_mvops; | 81 | const struct nfs4_minor_version_ops *cl_mvops; |
| 86 | unsigned long cl_mig_gen; | 82 | unsigned long cl_mig_gen; |
| @@ -108,6 +104,11 @@ struct nfs_client { | |||
| 108 | #define NFS_SP4_MACH_CRED_COMMIT 6 /* COMMIT */ | 104 | #define NFS_SP4_MACH_CRED_COMMIT 6 /* COMMIT */ |
| 109 | #endif /* CONFIG_NFS_V4 */ | 105 | #endif /* CONFIG_NFS_V4 */ |
| 110 | 106 | ||
| 107 | /* Our own IP address, as a null-terminated string. | ||
| 108 | * This is used to generate the mv0 callback address. | ||
| 109 | */ | ||
| 110 | char cl_ipaddr[48]; | ||
| 111 | |||
| 111 | #ifdef CONFIG_NFS_FSCACHE | 112 | #ifdef CONFIG_NFS_FSCACHE |
| 112 | struct fscache_cookie *fscache; /* client index cache cookie */ | 113 | struct fscache_cookie *fscache; /* client index cache cookie */ |
| 113 | #endif | 114 | #endif |
