diff options
author | Russ Cox <rsc@swtch.com> | 2006-03-25 06:07:24 -0500 |
---|---|---|
committer | Linus Torvalds <torvalds@g5.osdl.org> | 2006-03-25 11:22:54 -0500 |
commit | 4a26c2429b8c1ab2be140a4b29aaf16d4dcd8f92 (patch) | |
tree | 6233fc9cf2cf0889e839e318bf30d742c5861783 /fs/9p | |
parent | 27979bb2ff748613dba96ae66392a76fb0678527 (diff) |
[PATCH] v9fs: rename tids to tags to be consistent with Plan 9 documentation
The code talks about these things called tids, which I eventually figured
out are tags.
Signed-off-by: Eric Van Hensbergen <ericvh@gmail.com>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
Diffstat (limited to 'fs/9p')
-rw-r--r-- | fs/9p/9p.c | 2 | ||||
-rw-r--r-- | fs/9p/mux.c | 12 | ||||
-rw-r--r-- | fs/9p/v9fs.c | 2 | ||||
-rw-r--r-- | fs/9p/v9fs.h | 3 |
4 files changed, 8 insertions, 11 deletions
diff --git a/fs/9p/9p.c b/fs/9p/9p.c index c148e6ba07e5..ea2cf9692ff4 100644 --- a/fs/9p/9p.c +++ b/fs/9p/9p.c | |||
@@ -152,7 +152,7 @@ v9fs_t_clunk(struct v9fs_session_info *v9ses, u32 fid) | |||
152 | /** | 152 | /** |
153 | * v9fs_v9fs_t_flush - flush a pending transaction | 153 | * v9fs_v9fs_t_flush - flush a pending transaction |
154 | * @v9ses: 9P2000 session information | 154 | * @v9ses: 9P2000 session information |
155 | * @tag: tid to release | 155 | * @tag: tag to release |
156 | * | 156 | * |
157 | */ | 157 | */ |
158 | 158 | ||
diff --git a/fs/9p/mux.c b/fs/9p/mux.c index e2ae60adda99..3b10a36cefdb 100644 --- a/fs/9p/mux.c +++ b/fs/9p/mux.c | |||
@@ -70,7 +70,7 @@ struct v9fs_mux_data { | |||
70 | int msize; | 70 | int msize; |
71 | unsigned char *extended; | 71 | unsigned char *extended; |
72 | struct v9fs_transport *trans; | 72 | struct v9fs_transport *trans; |
73 | struct v9fs_idpool tidpool; | 73 | struct v9fs_idpool tagpool; |
74 | int err; | 74 | int err; |
75 | wait_queue_head_t equeue; | 75 | wait_queue_head_t equeue; |
76 | struct list_head req_list; | 76 | struct list_head req_list; |
@@ -280,8 +280,8 @@ struct v9fs_mux_data *v9fs_mux_init(struct v9fs_transport *trans, int msize, | |||
280 | m->msize = msize; | 280 | m->msize = msize; |
281 | m->extended = extended; | 281 | m->extended = extended; |
282 | m->trans = trans; | 282 | m->trans = trans; |
283 | idr_init(&m->tidpool.pool); | 283 | idr_init(&m->tagpool.pool); |
284 | init_MUTEX(&m->tidpool.lock); | 284 | init_MUTEX(&m->tagpool.lock); |
285 | m->err = 0; | 285 | m->err = 0; |
286 | init_waitqueue_head(&m->equeue); | 286 | init_waitqueue_head(&m->equeue); |
287 | INIT_LIST_HEAD(&m->req_list); | 287 | INIT_LIST_HEAD(&m->req_list); |
@@ -965,7 +965,7 @@ static u16 v9fs_mux_get_tag(struct v9fs_mux_data *m) | |||
965 | { | 965 | { |
966 | int tag; | 966 | int tag; |
967 | 967 | ||
968 | tag = v9fs_get_idpool(&m->tidpool); | 968 | tag = v9fs_get_idpool(&m->tagpool); |
969 | if (tag < 0) | 969 | if (tag < 0) |
970 | return V9FS_NOTAG; | 970 | return V9FS_NOTAG; |
971 | else | 971 | else |
@@ -974,6 +974,6 @@ static u16 v9fs_mux_get_tag(struct v9fs_mux_data *m) | |||
974 | 974 | ||
975 | static void v9fs_mux_put_tag(struct v9fs_mux_data *m, u16 tag) | 975 | static void v9fs_mux_put_tag(struct v9fs_mux_data *m, u16 tag) |
976 | { | 976 | { |
977 | if (tag != V9FS_NOTAG && v9fs_check_idpool(tag, &m->tidpool)) | 977 | if (tag != V9FS_NOTAG && v9fs_check_idpool(tag, &m->tagpool)) |
978 | v9fs_put_idpool(tag, &m->tidpool); | 978 | v9fs_put_idpool(tag, &m->tagpool); |
979 | } | 979 | } |
diff --git a/fs/9p/v9fs.c b/fs/9p/v9fs.c index 61352491ba36..daf623cd61c5 100644 --- a/fs/9p/v9fs.c +++ b/fs/9p/v9fs.c | |||
@@ -289,7 +289,7 @@ v9fs_session_init(struct v9fs_session_info *v9ses, | |||
289 | /* set global debug level */ | 289 | /* set global debug level */ |
290 | v9fs_debug_level = v9ses->debug; | 290 | v9fs_debug_level = v9ses->debug; |
291 | 291 | ||
292 | /* id pools that are session-dependent: FIDs and TIDs */ | 292 | /* id pools that are session-dependent: fids and tags */ |
293 | idr_init(&v9ses->fidpool.pool); | 293 | idr_init(&v9ses->fidpool.pool); |
294 | init_MUTEX(&v9ses->fidpool.lock); | 294 | init_MUTEX(&v9ses->fidpool.lock); |
295 | 295 | ||
diff --git a/fs/9p/v9fs.h b/fs/9p/v9fs.h index f337da7a0eec..9f63ab8106dd 100644 --- a/fs/9p/v9fs.h +++ b/fs/9p/v9fs.h | |||
@@ -91,6 +91,3 @@ void v9fs_session_cancel(struct v9fs_session_info *v9ses); | |||
91 | #define V9FS_DEFUSER "nobody" | 91 | #define V9FS_DEFUSER "nobody" |
92 | #define V9FS_DEFANAME "" | 92 | #define V9FS_DEFANAME "" |
93 | 93 | ||
94 | /* inital pool sizes for fids and tags */ | ||
95 | #define V9FS_START_FIDS 8192 | ||
96 | #define V9FS_START_TIDS 256 | ||