aboutsummaryrefslogtreecommitdiffstats
path: root/fs/nfs/pnfs.h
diff options
context:
space:
mode:
authorPeng Tao <tao.peng@primarydata.com>2014-05-30 06:15:59 -0400
committerTom Haynes <loghyr@primarydata.com>2015-02-03 14:06:35 -0500
commit5f01d9539496577b9ee62e213f4122a2a209550c (patch)
treeb6313926f5567e019c1800f9c15f2f7475ac21f3 /fs/nfs/pnfs.h
parent30626f9c32f0ad5e2c4173f10fb4b1358bbba6ec (diff)
nfs41: create NFSv3 DS connection if specified
Signed-off-by: Peng Tao <tao.peng@primarydata.com> Signed-off-by: Tom Haynes <Thomas.Haynes@primarydata.com>
Diffstat (limited to 'fs/nfs/pnfs.h')
-rw-r--r--fs/nfs/pnfs.h7
1 files changed, 6 insertions, 1 deletions
diff --git a/fs/nfs/pnfs.h b/fs/nfs/pnfs.h
index 70ffec135696..c39882191651 100644
--- a/fs/nfs/pnfs.h
+++ b/fs/nfs/pnfs.h
@@ -323,9 +323,10 @@ void pnfs_generic_write_commit_done(struct rpc_task *task, void *data);
323void nfs4_pnfs_ds_put(struct nfs4_pnfs_ds *ds); 323void nfs4_pnfs_ds_put(struct nfs4_pnfs_ds *ds);
324struct nfs4_pnfs_ds *nfs4_pnfs_ds_add(struct list_head *dsaddrs, 324struct nfs4_pnfs_ds *nfs4_pnfs_ds_add(struct list_head *dsaddrs,
325 gfp_t gfp_flags); 325 gfp_t gfp_flags);
326void nfs4_pnfs_v3_ds_connect_unload(void);
326void nfs4_pnfs_ds_connect(struct nfs_server *mds_srv, struct nfs4_pnfs_ds *ds, 327void nfs4_pnfs_ds_connect(struct nfs_server *mds_srv, struct nfs4_pnfs_ds *ds,
327 struct nfs4_deviceid_node *devid, unsigned int timeo, 328 struct nfs4_deviceid_node *devid, unsigned int timeo,
328 unsigned int retrans, u32 versoin, u32 minor_version, 329 unsigned int retrans, u32 version, u32 minor_version,
329 rpc_authflavor_t au_flavor); 330 rpc_authflavor_t au_flavor);
330struct nfs4_pnfs_ds_addr *nfs4_decode_mp_ds_addr(struct net *net, 331struct nfs4_pnfs_ds_addr *nfs4_decode_mp_ds_addr(struct net *net,
331 struct xdr_stream *xdr, 332 struct xdr_stream *xdr,
@@ -615,6 +616,10 @@ static inline struct nfs4_threshold *pnfs_mdsthreshold_alloc(void)
615 return NULL; 616 return NULL;
616} 617}
617 618
619static inline void nfs4_pnfs_v3_ds_connect_unload(void)
620{
621}
622
618#endif /* CONFIG_NFS_V4_1 */ 623#endif /* CONFIG_NFS_V4_1 */
619 624
620#endif /* FS_NFS_PNFS_H */ 625#endif /* FS_NFS_PNFS_H */