diff options
author | Latchesar Ionkov <lucho@ionkov.net> | 2007-07-10 18:57:28 -0400 |
---|---|---|
committer | Eric Van Hensbergen <ericvh@ericvh-desktop.austin.ibm.com> | 2007-07-14 16:13:40 -0400 |
commit | bd238fb431f31989898423c8b6496bc8c4204a86 (patch) | |
tree | f85a536383cbf360125ecb0592f6c515e0ecf0ff /fs/9p/fid.h | |
parent | 8d9107e8c50e1c4ff43c91c8841805833f3ecfb9 (diff) |
9p: Reorganization of 9p file system code
This patchset moves non-filesystem interfaces of v9fs from fs/9p to net/9p.
It moves the transport, packet marshalling and connection layers to net/9p
leaving only the VFS related files in fs/9p. This work is being done in
preparation for in-kernel 9p servers as well as alternate 9p clients (other
than VFS).
Signed-off-by: Latchesar Ionkov <lucho@ionkov.net>
Signed-off-by: Eric Van Hensbergen <ericvh@gmail.com>
Diffstat (limited to 'fs/9p/fid.h')
-rw-r--r-- | fs/9p/fid.h | 43 |
1 files changed, 7 insertions, 36 deletions
diff --git a/fs/9p/fid.h b/fs/9p/fid.h index 48fc170c26c8..47a0ba742872 100644 --- a/fs/9p/fid.h +++ b/fs/9p/fid.h | |||
@@ -22,41 +22,12 @@ | |||
22 | 22 | ||
23 | #include <linux/list.h> | 23 | #include <linux/list.h> |
24 | 24 | ||
25 | #define FID_OP 0 | 25 | struct v9fs_dentry { |
26 | #define FID_WALK 1 | 26 | spinlock_t lock; /* protect fidlist */ |
27 | #define FID_CREATE 2 | 27 | struct list_head fidlist; |
28 | |||
29 | struct v9fs_fid { | ||
30 | struct list_head list; /* list of fids associated with a dentry */ | ||
31 | struct list_head active; /* XXX - debug */ | ||
32 | |||
33 | struct semaphore lock; | ||
34 | |||
35 | u32 fid; | ||
36 | unsigned char fidopen; /* set when fid is opened */ | ||
37 | unsigned char fidclunked; /* set when fid has already been clunked */ | ||
38 | |||
39 | struct v9fs_qid qid; | ||
40 | u32 iounit; | ||
41 | |||
42 | /* readdir stuff */ | ||
43 | int rdir_fpos; | ||
44 | loff_t rdir_pos; | ||
45 | struct v9fs_fcall *rdir_fcall; | ||
46 | |||
47 | /* management stuff */ | ||
48 | uid_t uid; /* user associated with this fid */ | ||
49 | |||
50 | /* private data */ | ||
51 | struct file *filp; /* backpointer to File struct for open files */ | ||
52 | struct v9fs_session_info *v9ses; /* session info for this FID */ | ||
53 | }; | 28 | }; |
54 | 29 | ||
55 | struct v9fs_fid *v9fs_fid_lookup(struct dentry *dentry); | 30 | struct p9_fid *v9fs_fid_lookup(struct dentry *dentry); |
56 | struct v9fs_fid *v9fs_fid_get_created(struct dentry *); | 31 | struct p9_fid *v9fs_fid_lookup_remove(struct dentry *dentry); |
57 | void v9fs_fid_destroy(struct v9fs_fid *fid); | 32 | struct p9_fid *v9fs_fid_clone(struct dentry *dentry); |
58 | struct v9fs_fid *v9fs_fid_create(struct v9fs_session_info *, int fid); | 33 | int v9fs_fid_add(struct dentry *dentry, struct p9_fid *fid); |
59 | int v9fs_fid_insert(struct v9fs_fid *fid, struct dentry *dentry); | ||
60 | struct v9fs_fid *v9fs_fid_clone(struct dentry *dentry); | ||
61 | void v9fs_fid_clunk(struct v9fs_session_info *v9ses, struct v9fs_fid *fid); | ||
62 | |||