diff options
author | J. Bruce Fields <bfields@citi.umich.edu> | 2010-05-31 19:09:40 -0400 |
---|---|---|
committer | J. Bruce Fields <bfields@redhat.com> | 2010-10-01 19:29:43 -0400 |
commit | 07263f1efe7d5b96e6713471abfa087f41bb2b7c (patch) | |
tree | bb5fb62ff610cd9f4cf6abe50baa4a6c2a9a5194 /fs/nfsd/nfs4callback.c | |
parent | 1e7af1b8062598a038c04dfaaabd038a0d6e8b6a (diff) |
nfsd4: minor variable renaming (cb -> conn)
Now that we have both nfsd4_callback and nfsd4_cb_conn structures, I get
confused if variables of both types are always named cb....
Signed-off-by: J. Bruce Fields <bfields@citi.umich.edu>
Diffstat (limited to 'fs/nfsd/nfs4callback.c')
-rw-r--r-- | fs/nfsd/nfs4callback.c | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/fs/nfsd/nfs4callback.c b/fs/nfsd/nfs4callback.c index 1112f451295a..4566b69128a3 100644 --- a/fs/nfsd/nfs4callback.c +++ b/fs/nfsd/nfs4callback.c | |||
@@ -472,7 +472,7 @@ static int max_cb_time(void) | |||
472 | /* Reference counting, callback cleanup, etc., all look racy as heck. | 472 | /* Reference counting, callback cleanup, etc., all look racy as heck. |
473 | * And why is cl_cb_set an atomic? */ | 473 | * And why is cl_cb_set an atomic? */ |
474 | 474 | ||
475 | int setup_callback_client(struct nfs4_client *clp, struct nfs4_cb_conn *cb) | 475 | int setup_callback_client(struct nfs4_client *clp, struct nfs4_cb_conn *conn) |
476 | { | 476 | { |
477 | struct rpc_timeout timeparms = { | 477 | struct rpc_timeout timeparms = { |
478 | .to_initval = max_cb_time(), | 478 | .to_initval = max_cb_time(), |
@@ -481,11 +481,11 @@ int setup_callback_client(struct nfs4_client *clp, struct nfs4_cb_conn *cb) | |||
481 | struct rpc_create_args args = { | 481 | struct rpc_create_args args = { |
482 | .net = &init_net, | 482 | .net = &init_net, |
483 | .protocol = XPRT_TRANSPORT_TCP, | 483 | .protocol = XPRT_TRANSPORT_TCP, |
484 | .address = (struct sockaddr *) &cb->cb_addr, | 484 | .address = (struct sockaddr *) &conn->cb_addr, |
485 | .addrsize = cb->cb_addrlen, | 485 | .addrsize = conn->cb_addrlen, |
486 | .timeout = &timeparms, | 486 | .timeout = &timeparms, |
487 | .program = &cb_program, | 487 | .program = &cb_program, |
488 | .prognumber = cb->cb_prog, | 488 | .prognumber = conn->cb_prog, |
489 | .version = 0, | 489 | .version = 0, |
490 | .authflavor = clp->cl_flavor, | 490 | .authflavor = clp->cl_flavor, |
491 | .flags = (RPC_CLNT_CREATE_NOPING | RPC_CLNT_CREATE_QUIET), | 491 | .flags = (RPC_CLNT_CREATE_NOPING | RPC_CLNT_CREATE_QUIET), |
@@ -495,8 +495,8 @@ int setup_callback_client(struct nfs4_client *clp, struct nfs4_cb_conn *cb) | |||
495 | 495 | ||
496 | if (!clp->cl_principal && (clp->cl_flavor >= RPC_AUTH_GSS_KRB5)) | 496 | if (!clp->cl_principal && (clp->cl_flavor >= RPC_AUTH_GSS_KRB5)) |
497 | return -EINVAL; | 497 | return -EINVAL; |
498 | if (cb->cb_minorversion) { | 498 | if (conn->cb_minorversion) { |
499 | args.bc_xprt = cb->cb_xprt; | 499 | args.bc_xprt = conn->cb_xprt; |
500 | args.protocol = XPRT_TRANSPORT_BC_TCP; | 500 | args.protocol = XPRT_TRANSPORT_BC_TCP; |
501 | } | 501 | } |
502 | /* Create RPC client */ | 502 | /* Create RPC client */ |
@@ -563,13 +563,13 @@ void do_probe_callback(struct nfs4_client *clp) | |||
563 | /* | 563 | /* |
564 | * Set up the callback client and put a NFSPROC4_CB_NULL on the wire... | 564 | * Set up the callback client and put a NFSPROC4_CB_NULL on the wire... |
565 | */ | 565 | */ |
566 | void nfsd4_probe_callback(struct nfs4_client *clp, struct nfs4_cb_conn *cb) | 566 | void nfsd4_probe_callback(struct nfs4_client *clp, struct nfs4_cb_conn *conn) |
567 | { | 567 | { |
568 | int status; | 568 | int status; |
569 | 569 | ||
570 | BUG_ON(atomic_read(&clp->cl_cb_set)); | 570 | BUG_ON(atomic_read(&clp->cl_cb_set)); |
571 | 571 | ||
572 | status = setup_callback_client(clp, cb); | 572 | status = setup_callback_client(clp, conn); |
573 | if (status) { | 573 | if (status) { |
574 | warn_no_callback_path(clp, status); | 574 | warn_no_callback_path(clp, status); |
575 | return; | 575 | return; |