diff options
author | Trond Myklebust <Trond.Myklebust@netapp.com> | 2009-08-09 15:14:25 -0400 |
---|---|---|
committer | Trond Myklebust <Trond.Myklebust@netapp.com> | 2009-08-09 15:14:25 -0400 |
commit | 23ac6581702ac6d029643328a7e6ea3baf834c5e (patch) | |
tree | e960a371127a240f17971596e0c456ccc8f01b7e /include | |
parent | 7d217caca5d704e48aa5e59aba0b3ad4c7af4fd2 (diff) |
SUNRPC: clean up rpc_setup_pipedir()
There is still a little wart or two there: Since we've already got a
vfsmount, we might as well pass that in to rpc_create_client_dir.
Another point is that if we open code __rpc_lookup_path() here, then we can
avoid looking up the entire parent directory path over and over again: it
doesn't change.
Also get rid of rpc_clnt->cl_pathname, since it has no users...
Signed-off-by: Trond Myklebust <Trond.Myklebust@netapp.com>
Diffstat (limited to 'include')
-rw-r--r-- | include/linux/sunrpc/clnt.h | 1 | ||||
-rw-r--r-- | include/linux/sunrpc/rpc_pipe_fs.h | 2 |
2 files changed, 1 insertions, 2 deletions
diff --git a/include/linux/sunrpc/clnt.h b/include/linux/sunrpc/clnt.h index 38ad162330a2..1848d44922ef 100644 --- a/include/linux/sunrpc/clnt.h +++ b/include/linux/sunrpc/clnt.h | |||
@@ -51,7 +51,6 @@ struct rpc_clnt { | |||
51 | 51 | ||
52 | int cl_nodelen; /* nodename length */ | 52 | int cl_nodelen; /* nodename length */ |
53 | char cl_nodename[UNX_MAXNODENAME]; | 53 | char cl_nodename[UNX_MAXNODENAME]; |
54 | char cl_pathname[30];/* Path in rpc_pipe_fs */ | ||
55 | struct path cl_path; | 54 | struct path cl_path; |
56 | struct rpc_clnt * cl_parent; /* Points to parent of clones */ | 55 | struct rpc_clnt * cl_parent; /* Points to parent of clones */ |
57 | struct rpc_rtt cl_rtt_default; | 56 | struct rpc_rtt cl_rtt_default; |
diff --git a/include/linux/sunrpc/rpc_pipe_fs.h b/include/linux/sunrpc/rpc_pipe_fs.h index 8de0ac276499..88332ef1e959 100644 --- a/include/linux/sunrpc/rpc_pipe_fs.h +++ b/include/linux/sunrpc/rpc_pipe_fs.h | |||
@@ -45,7 +45,7 @@ RPC_I(struct inode *inode) | |||
45 | extern int rpc_queue_upcall(struct inode *, struct rpc_pipe_msg *); | 45 | extern int rpc_queue_upcall(struct inode *, struct rpc_pipe_msg *); |
46 | 46 | ||
47 | struct rpc_clnt; | 47 | struct rpc_clnt; |
48 | extern struct dentry *rpc_create_client_dir(const char *, struct rpc_clnt *); | 48 | extern struct dentry *rpc_create_client_dir(struct dentry *, struct qstr *, struct rpc_clnt *); |
49 | extern int rpc_remove_client_dir(struct dentry *); | 49 | extern int rpc_remove_client_dir(struct dentry *); |
50 | extern struct dentry *rpc_mkpipe(struct dentry *, const char *, void *, | 50 | extern struct dentry *rpc_mkpipe(struct dentry *, const char *, void *, |
51 | const struct rpc_pipe_ops *, int flags); | 51 | const struct rpc_pipe_ops *, int flags); |