All of lore.kernel.org
 help / color / mirror / Atom feed
From: Rui Xiang <rui.xiang@huawei.com>
To: Trond Myklebust <trond.myklebust@primarydata.com>,
	Linux NFS Mailing List <linux-nfs@vger.kernel.org>
Subject: [PATCH] NFSv4.1: remove unused cred parameter from nfs41_walk_client_list
Date: Tue, 10 Dec 2013 19:11:05 +0800	[thread overview]
Message-ID: <52A6F6C9.90704@huawei.com> (raw)

Clean Up.

Signed-off-by: Rui Xiang <rui.xiang@huawei.com>
---
 fs/nfs/internal.h   | 3 +--
 fs/nfs/nfs4client.c | 4 +---
 fs/nfs/nfs4state.c  | 2 +-
 3 files changed, 3 insertions(+), 6 deletions(-)

diff --git a/fs/nfs/internal.h b/fs/nfs/internal.h
index 8b5cc04..cdcfc8f 100644
--- a/fs/nfs/internal.h
+++ b/fs/nfs/internal.h
@@ -482,8 +482,7 @@ extern int nfs40_walk_client_list(struct nfs_client *clp,
 				struct nfs_client **result,
 				struct rpc_cred *cred);
 extern int nfs41_walk_client_list(struct nfs_client *clp,
-				struct nfs_client **result,
-				struct rpc_cred *cred);
+				struct nfs_client **result);
 
 /*
  * Determine the device name as a string
diff --git a/fs/nfs/nfs4client.c b/fs/nfs/nfs4client.c
index b4a160a..4db9b38 100644
--- a/fs/nfs/nfs4client.c
+++ b/fs/nfs/nfs4client.c
@@ -596,7 +596,6 @@ out_major_mismatch:
  *
  * @new: nfs_client with client ID to test
  * @result: OUT: found nfs_client, or new
- * @cred: credential to use for trunking test
  *
  * Returns zero, a negative errno, or a negative NFS4ERR status.
  * If zero is returned, an nfs_client pointer is planted in "result."
@@ -605,8 +604,7 @@ out_major_mismatch:
  *     the last nfs_client on the list.
  */
 int nfs41_walk_client_list(struct nfs_client *new,
-			   struct nfs_client **result,
-			   struct rpc_cred *cred)
+			   struct nfs_client **result)
 {
 	struct nfs_net *nn = net_generic(new->cl_net, nfs_net_id);
 	struct nfs_client *pos, *prev = NULL;
diff --git a/fs/nfs/nfs4state.c b/fs/nfs/nfs4state.c
index 059c01b..268a17a 100644
--- a/fs/nfs/nfs4state.c
+++ b/fs/nfs/nfs4state.c
@@ -348,7 +348,7 @@ int nfs41_discover_server_trunking(struct nfs_client *clp,
 		return status;
 	set_bit(NFS4CLNT_LEASE_CONFIRM, &clp->cl_state);
 
-	return nfs41_walk_client_list(clp, result, cred);
+	return nfs41_walk_client_list(clp, result);
 }
 
 #endif /* CONFIG_NFS_V4_1 */
-- 
1.8.2.2



                 reply	other threads:[~2013-12-10 11:14 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=52A6F6C9.90704@huawei.com \
    --to=rui.xiang@huawei.com \
    --cc=linux-nfs@vger.kernel.org \
    --cc=trond.myklebust@primarydata.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.