diff options
author | Trond Myklebust <Trond.Myklebust@netapp.com> | 2013-08-26 17:44:26 -0400 |
---|---|---|
committer | Trond Myklebust <Trond.Myklebust@netapp.com> | 2013-09-01 11:12:42 -0400 |
commit | c36dcfe1f7712b7c12df2d80359e638b9d246ce6 (patch) | |
tree | c60e48fbe790d51aba77b062a002cc0032e4a612 /net/sunrpc/rpc_pipe.c | |
parent | 2127d82af302be94066223311ca6ff317ee13ee0 (diff) |
SUNRPC: Remove the rpc_client->cl_dentry
It is now redundant.
Signed-off-by: Trond Myklebust <Trond.Myklebust@netapp.com>
Diffstat (limited to 'net/sunrpc/rpc_pipe.c')
-rw-r--r-- | net/sunrpc/rpc_pipe.c | 13 |
1 files changed, 7 insertions, 6 deletions
diff --git a/net/sunrpc/rpc_pipe.c b/net/sunrpc/rpc_pipe.c index cfeba77de567..a35b2f402aaa 100644 --- a/net/sunrpc/rpc_pipe.c +++ b/net/sunrpc/rpc_pipe.c | |||
@@ -1055,15 +1055,16 @@ struct dentry *rpc_create_client_dir(struct dentry *dentry, | |||
1055 | 1055 | ||
1056 | /** | 1056 | /** |
1057 | * rpc_remove_client_dir - Remove a directory created with rpc_create_client_dir() | 1057 | * rpc_remove_client_dir - Remove a directory created with rpc_create_client_dir() |
1058 | * @dentry: dentry for the pipe | ||
1059 | * @rpc_client: rpc_client for the pipe | 1058 | * @rpc_client: rpc_client for the pipe |
1060 | */ | 1059 | */ |
1061 | int rpc_remove_client_dir(struct dentry *dentry, struct rpc_clnt *rpc_client) | 1060 | int rpc_remove_client_dir(struct rpc_clnt *rpc_client) |
1062 | { | 1061 | { |
1063 | if (rpc_client->cl_pipedir_objects.pdh_dentry) { | 1062 | struct dentry *dentry = rpc_client->cl_pipedir_objects.pdh_dentry; |
1064 | rpc_destroy_pipe_dir_objects(&rpc_client->cl_pipedir_objects); | 1063 | |
1065 | rpc_client->cl_pipedir_objects.pdh_dentry = NULL; | 1064 | if (dentry == NULL) |
1066 | } | 1065 | return 0; |
1066 | rpc_destroy_pipe_dir_objects(&rpc_client->cl_pipedir_objects); | ||
1067 | rpc_client->cl_pipedir_objects.pdh_dentry = NULL; | ||
1067 | return rpc_rmdir_depopulate(dentry, rpc_clntdir_depopulate); | 1068 | return rpc_rmdir_depopulate(dentry, rpc_clntdir_depopulate); |
1068 | } | 1069 | } |
1069 | 1070 | ||