aboutsummaryrefslogtreecommitdiffstats
path: root/include/net
diff options
context:
space:
mode:
authorEric Van Hensbergen <ericvh@gmail.com>2008-10-13 21:36:15 -0400
committerEric Van Hensbergen <ericvh@gmail.com>2008-10-17 12:04:43 -0400
commit06b55b464ee5b305aca75cb7d9424b184bf07f68 (patch)
treefb2bba4546ad4b800f1e49a75774b01fc6fcdb6b /include/net
parentdfb0ec2e13a906ff19a0bbfa9208caab50cfc2e3 (diff)
9p: move dirread to fs layer
Currently reading a directory is implemented in the client code. This function is not actually a wire operation, but a meta operation which calls read operations and processes the results. This patch moves this functionality to the fs layer and calls component wire operations instead of constructing their packets. This provides a cleaner separation and will help when we reorganize the client functions and protocol processing methods. Signed-off-by: Eric Van Hensbergen <ericvh@gmail.com>
Diffstat (limited to 'include/net')
-rw-r--r--include/net/9p/client.h5
1 files changed, 0 insertions, 5 deletions
diff --git a/include/net/9p/client.h b/include/net/9p/client.h
index bb8b0ede132d..eeb7d922816e 100644
--- a/include/net/9p/client.h
+++ b/include/net/9p/client.h
@@ -163,8 +163,6 @@ struct p9_client {
163 * @uid: the numeric uid of the local user who owns this handle 163 * @uid: the numeric uid of the local user who owns this handle
164 * @aux: transport specific information (unused?) 164 * @aux: transport specific information (unused?)
165 * @rdir_fpos: tracks offset of file position when reading directory contents 165 * @rdir_fpos: tracks offset of file position when reading directory contents
166 * @rdir_pos: (unused?)
167 * @rdir_fcall: holds response of last directory read request
168 * @flist: per-client-instance fid tracking 166 * @flist: per-client-instance fid tracking
169 * @dlist: per-dentry fid tracking 167 * @dlist: per-dentry fid tracking
170 * 168 *
@@ -181,8 +179,6 @@ struct p9_fid {
181 void *aux; 179 void *aux;
182 180
183 int rdir_fpos; 181 int rdir_fpos;
184 int rdir_pos;
185 struct p9_fcall *rdir_fcall;
186 struct list_head flist; 182 struct list_head flist;
187 struct list_head dlist; /* list of all fids attached to a dentry */ 183 struct list_head dlist; /* list of all fids attached to a dentry */
188}; 184};
@@ -207,7 +203,6 @@ int p9_client_write(struct p9_fid *fid, char *data, const char __user *udata,
207 u64 offset, u32 count); 203 u64 offset, u32 count);
208struct p9_stat *p9_client_stat(struct p9_fid *fid); 204struct p9_stat *p9_client_stat(struct p9_fid *fid);
209int p9_client_wstat(struct p9_fid *fid, struct p9_wstat *wst); 205int p9_client_wstat(struct p9_fid *fid, struct p9_wstat *wst);
210struct p9_stat *p9_client_dirread(struct p9_fid *fid, u64 offset);
211 206
212struct p9_req_t *p9_tag_lookup(struct p9_client *, u16); 207struct p9_req_t *p9_tag_lookup(struct p9_client *, u16);
213void p9_client_cb(struct p9_client *c, struct p9_req_t *req); 208void p9_client_cb(struct p9_client *c, struct p9_req_t *req);