]> git.karo-electronics.de Git - mv-sheeva.git/commitdiff
SUNRPC: remove RPC PipeFS mount point reference from RPC client
authorStanislav Kinsbursky <skinsbursky@parallels.com>
Wed, 11 Jan 2012 15:18:42 +0000 (19:18 +0400)
committerTrond Myklebust <Trond.Myklebust@netapp.com>
Tue, 31 Jan 2012 23:20:26 +0000 (18:20 -0500)
This is a cleanup patch. We don't need this reference anymore.

Signed-off-by: Stanislav Kinsbursky <skinsbursky@parallels.com>
Signed-off-by: Trond Myklebust <Trond.Myklebust@netapp.com>
fs/nfs/idmap.c
include/linux/sunrpc/clnt.h
net/sunrpc/auth_gss/auth_gss.c
net/sunrpc/clnt.c

index 2992cb854e12e1a6d843bafa23e145e50143d185..588d7da5b17ecbf437d984eff5105e910c8ff035 100644 (file)
@@ -451,8 +451,8 @@ nfs_idmap_new(struct nfs_client *clp)
                return error;
        }
 
-       if (clp->cl_rpcclient->cl_path.dentry)
-               pipe->dentry = rpc_mkpipe_dentry(clp->cl_rpcclient->cl_path.dentry,
+       if (clp->cl_rpcclient->cl_dentry)
+               pipe->dentry = rpc_mkpipe_dentry(clp->cl_rpcclient->cl_dentry,
                                "idmap", idmap, pipe);
        if (IS_ERR(pipe->dentry)) {
                error = PTR_ERR(pipe->dentry);
index 2c5993a17c3315423cbb3ba895fb8f24f4ac0bb3..bfd61852b718e0879535d68b2e81deee41af6b1f 100644 (file)
@@ -57,7 +57,7 @@ struct rpc_clnt {
 
        int                     cl_nodelen;     /* nodename length */
        char                    cl_nodename[UNX_MAXNODENAME];
-       struct path             cl_path;
+       struct dentry *         cl_dentry;
        struct rpc_clnt *       cl_parent;      /* Points to parent of clones */
        struct rpc_rtt          cl_rtt_default;
        struct rpc_timeout      cl_timeout_default;
index 9da2d837b512eeecb28d803f55fd0db7de4a19be..5ebb602cabe0c64076ff0fa8e1829f59cf7e39dc 100644 (file)
@@ -777,12 +777,12 @@ static int gss_pipes_dentries_create(struct rpc_auth *auth)
        gss_auth = container_of(auth, struct gss_auth, rpc_auth);
        clnt = gss_auth->client;
 
-       gss_auth->pipe[1]->dentry = rpc_mkpipe_dentry(clnt->cl_path.dentry,
+       gss_auth->pipe[1]->dentry = rpc_mkpipe_dentry(clnt->cl_dentry,
                                                      "gssd",
                                                      clnt, gss_auth->pipe[1]);
        if (IS_ERR(gss_auth->pipe[1]->dentry))
                return PTR_ERR(gss_auth->pipe[1]->dentry);
-       gss_auth->pipe[0]->dentry = rpc_mkpipe_dentry(clnt->cl_path.dentry,
+       gss_auth->pipe[0]->dentry = rpc_mkpipe_dentry(clnt->cl_dentry,
                                                      gss_auth->mech->gm_name,
                                                      clnt, gss_auth->pipe[0]);
        if (IS_ERR(gss_auth->pipe[0]->dentry)) {
@@ -804,7 +804,7 @@ static void gss_pipes_dentries_destroy_net(struct rpc_clnt *clnt,
 
        sb = rpc_get_sb_net(net);
        if (sb) {
-               if (clnt->cl_path.dentry)
+               if (clnt->cl_dentry)
                        gss_pipes_dentries_destroy(auth);
                rpc_put_sb_net(net);
        }
@@ -819,7 +819,7 @@ static int gss_pipes_dentries_create_net(struct rpc_clnt *clnt,
 
        sb = rpc_get_sb_net(net);
        if (sb) {
-               if (clnt->cl_path.dentry)
+               if (clnt->cl_dentry)
                        err = gss_pipes_dentries_create(auth);
                rpc_put_sb_net(net);
        }
index e3ced3061212107b800e0d0d56083aab06be64a8..ed7c22de93191dd67b7c422309654906ce1ebc44 100644 (file)
@@ -98,12 +98,12 @@ static void rpc_unregister_client(struct rpc_clnt *clnt)
 
 static void __rpc_clnt_remove_pipedir(struct rpc_clnt *clnt)
 {
-       if (clnt->cl_path.dentry) {
+       if (clnt->cl_dentry) {
                if (clnt->cl_auth && clnt->cl_auth->au_ops->pipes_destroy)
                        clnt->cl_auth->au_ops->pipes_destroy(clnt->cl_auth);
-               rpc_remove_client_dir(clnt->cl_path.dentry);
+               rpc_remove_client_dir(clnt->cl_dentry);
        }
-       clnt->cl_path.dentry = NULL;
+       clnt->cl_dentry = NULL;
 }
 
 static void rpc_clnt_remove_pipedir(struct rpc_clnt *clnt)
@@ -154,20 +154,19 @@ static int
 rpc_setup_pipedir(struct rpc_clnt *clnt, char *dir_name)
 {
        struct super_block *pipefs_sb;
-       struct path path;
+       struct dentry *dentry;
 
-       clnt->cl_path.mnt = ERR_PTR(-ENOENT);
-       clnt->cl_path.dentry = NULL;
+       clnt->cl_dentry = NULL;
        if (dir_name == NULL)
                return 0;
        pipefs_sb = rpc_get_sb_net(clnt->cl_xprt->xprt_net);
        if (!pipefs_sb)
                return 0;
-       path.dentry = rpc_setup_pipedir_sb(pipefs_sb, clnt, dir_name);
+       dentry = rpc_setup_pipedir_sb(pipefs_sb, clnt, dir_name);
        rpc_put_sb_net(clnt->cl_xprt->xprt_net);
-       if (IS_ERR(path.dentry))
-               return PTR_ERR(path.dentry);
-       clnt->cl_path = path;
+       if (IS_ERR(dentry))
+               return PTR_ERR(dentry);
+       clnt->cl_dentry = dentry;
        return 0;
 }
 
@@ -186,7 +185,7 @@ static int __rpc_pipefs_event(struct rpc_clnt *clnt, unsigned long event,
                BUG_ON(dentry == NULL);
                if (IS_ERR(dentry))
                        return PTR_ERR(dentry);
-               clnt->cl_path.dentry = dentry;
+               clnt->cl_dentry = dentry;
                if (clnt->cl_auth->au_ops->pipes_create) {
                        err = clnt->cl_auth->au_ops->pipes_create(clnt->cl_auth);
                        if (err)