@@ -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
@@ -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;
@@ -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 */
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(-)