summaryrefslogtreecommitdiffstats
path: root/fs/nfs/nfs4client.c
diff options
context:
space:
mode:
Diffstat (limited to 'fs/nfs/nfs4client.c')
-rw-r--r--fs/nfs/nfs4client.c32
1 files changed, 18 insertions, 14 deletions
diff --git a/fs/nfs/nfs4client.c b/fs/nfs/nfs4client.c
index 2548405da1f7..170115fc43c5 100644
--- a/fs/nfs/nfs4client.c
+++ b/fs/nfs/nfs4client.c
@@ -42,7 +42,7 @@ static int nfs_get_cb_ident_idr(struct nfs_client *clp, int minorversion)
42} 42}
43 43
44#ifdef CONFIG_NFS_V4_1 44#ifdef CONFIG_NFS_V4_1
45/** 45/*
46 * Per auth flavor data server rpc clients 46 * Per auth flavor data server rpc clients
47 */ 47 */
48struct nfs4_ds_server { 48struct nfs4_ds_server {
@@ -51,7 +51,9 @@ struct nfs4_ds_server {
51}; 51};
52 52
53/** 53/**
54 * Common lookup case for DS I/O 54 * nfs4_find_ds_client - Common lookup case for DS I/O
55 * @ds_clp: pointer to the DS's nfs_client
56 * @flavor: rpc auth flavour to match
55 */ 57 */
56static struct nfs4_ds_server * 58static struct nfs4_ds_server *
57nfs4_find_ds_client(struct nfs_client *ds_clp, rpc_authflavor_t flavor) 59nfs4_find_ds_client(struct nfs_client *ds_clp, rpc_authflavor_t flavor)
@@ -118,9 +120,13 @@ nfs4_free_ds_server(struct nfs4_ds_server *dss)
118} 120}
119 121
120/** 122/**
121* Find or create a DS rpc client with th MDS server rpc client auth flavor 123 * nfs4_find_or_create_ds_client - Find or create a DS rpc client
122* in the nfs_client cl_ds_clients list. 124 * @ds_clp: pointer to the DS's nfs_client
123*/ 125 * @inode: pointer to the inode
126 *
127 * Find or create a DS rpc client with th MDS server rpc client auth flavor
128 * in the nfs_client cl_ds_clients list.
129 */
124struct rpc_clnt * 130struct rpc_clnt *
125nfs4_find_or_create_ds_client(struct nfs_client *ds_clp, struct inode *inode) 131nfs4_find_or_create_ds_client(struct nfs_client *ds_clp, struct inode *inode)
126{ 132{
@@ -284,7 +290,7 @@ static int nfs4_init_callback(struct nfs_client *clp)
284 290
285/** 291/**
286 * nfs40_init_client - nfs_client initialization tasks for NFSv4.0 292 * nfs40_init_client - nfs_client initialization tasks for NFSv4.0
287 * @clp - nfs_client to initialize 293 * @clp: nfs_client to initialize
288 * 294 *
289 * Returns zero on success, or a negative errno if some error occurred. 295 * Returns zero on success, or a negative errno if some error occurred.
290 */ 296 */
@@ -312,7 +318,7 @@ int nfs40_init_client(struct nfs_client *clp)
312 318
313/** 319/**
314 * nfs41_init_client - nfs_client initialization tasks for NFSv4.1+ 320 * nfs41_init_client - nfs_client initialization tasks for NFSv4.1+
315 * @clp - nfs_client to initialize 321 * @clp: nfs_client to initialize
316 * 322 *
317 * Returns zero on success, or a negative errno if some error occurred. 323 * Returns zero on success, or a negative errno if some error occurred.
318 */ 324 */
@@ -360,9 +366,7 @@ static int nfs4_init_client_minor_version(struct nfs_client *clp)
360 * nfs4_init_client - Initialise an NFS4 client record 366 * nfs4_init_client - Initialise an NFS4 client record
361 * 367 *
362 * @clp: nfs_client to initialise 368 * @clp: nfs_client to initialise
363 * @timeparms: timeout parameters for underlying RPC transport 369 * @cl_init: pointer to nfs_client_initdata
364 * @ip_addr: callback IP address in presentation format
365 * @authflavor: authentication flavor for underlying RPC transport
366 * 370 *
367 * Returns pointer to an NFS client, or an ERR_PTR value. 371 * Returns pointer to an NFS client, or an ERR_PTR value.
368 */ 372 */
@@ -649,13 +653,13 @@ nfs4_check_server_scope(struct nfs41_server_scope *s1,
649 653
650/** 654/**
651 * nfs4_detect_session_trunking - Checks for session trunking. 655 * nfs4_detect_session_trunking - Checks for session trunking.
652 *
653 * Called after a successful EXCHANGE_ID on a multi-addr connection.
654 * Upon success, add the transport.
655 *
656 * @clp: original mount nfs_client 656 * @clp: original mount nfs_client
657 * @res: result structure from an exchange_id using the original mount 657 * @res: result structure from an exchange_id using the original mount
658 * nfs_client with a new multi_addr transport 658 * nfs_client with a new multi_addr transport
659 * @xprt: pointer to the transport to add.
660 *
661 * Called after a successful EXCHANGE_ID on a multi-addr connection.
662 * Upon success, add the transport.
659 * 663 *
660 * Returns zero on success, otherwise -EINVAL 664 * Returns zero on success, otherwise -EINVAL
661 * 665 *