Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 23549
b: refs/heads/master
c: 4a26c24
h: refs/heads/master
i:
  23547: 388ffb0
v: v3
  • Loading branch information
Russ Cox authored and Linus Torvalds committed Mar 25, 2006
1 parent 74dce71 commit 114bb5b
Show file tree
Hide file tree
Showing 5 changed files with 9 additions and 12 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 27979bb2ff748613dba96ae66392a76fb0678527
refs/heads/master: 4a26c2429b8c1ab2be140a4b29aaf16d4dcd8f92
2 changes: 1 addition & 1 deletion trunk/fs/9p/9p.c
Original file line number Diff line number Diff line change
Expand Up @@ -152,7 +152,7 @@ v9fs_t_clunk(struct v9fs_session_info *v9ses, u32 fid)
/**
* v9fs_v9fs_t_flush - flush a pending transaction
* @v9ses: 9P2000 session information
* @tag: tid to release
* @tag: tag to release
*
*/

Expand Down
12 changes: 6 additions & 6 deletions trunk/fs/9p/mux.c
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ struct v9fs_mux_data {
int msize;
unsigned char *extended;
struct v9fs_transport *trans;
struct v9fs_idpool tidpool;
struct v9fs_idpool tagpool;
int err;
wait_queue_head_t equeue;
struct list_head req_list;
Expand Down Expand Up @@ -280,8 +280,8 @@ struct v9fs_mux_data *v9fs_mux_init(struct v9fs_transport *trans, int msize,
m->msize = msize;
m->extended = extended;
m->trans = trans;
idr_init(&m->tidpool.pool);
init_MUTEX(&m->tidpool.lock);
idr_init(&m->tagpool.pool);
init_MUTEX(&m->tagpool.lock);
m->err = 0;
init_waitqueue_head(&m->equeue);
INIT_LIST_HEAD(&m->req_list);
Expand Down Expand Up @@ -965,7 +965,7 @@ static u16 v9fs_mux_get_tag(struct v9fs_mux_data *m)
{
int tag;

tag = v9fs_get_idpool(&m->tidpool);
tag = v9fs_get_idpool(&m->tagpool);
if (tag < 0)
return V9FS_NOTAG;
else
Expand All @@ -974,6 +974,6 @@ static u16 v9fs_mux_get_tag(struct v9fs_mux_data *m)

static void v9fs_mux_put_tag(struct v9fs_mux_data *m, u16 tag)
{
if (tag != V9FS_NOTAG && v9fs_check_idpool(tag, &m->tidpool))
v9fs_put_idpool(tag, &m->tidpool);
if (tag != V9FS_NOTAG && v9fs_check_idpool(tag, &m->tagpool))
v9fs_put_idpool(tag, &m->tagpool);
}
2 changes: 1 addition & 1 deletion trunk/fs/9p/v9fs.c
Original file line number Diff line number Diff line change
Expand Up @@ -289,7 +289,7 @@ v9fs_session_init(struct v9fs_session_info *v9ses,
/* set global debug level */
v9fs_debug_level = v9ses->debug;

/* id pools that are session-dependent: FIDs and TIDs */
/* id pools that are session-dependent: fids and tags */
idr_init(&v9ses->fidpool.pool);
init_MUTEX(&v9ses->fidpool.lock);

Expand Down
3 changes: 0 additions & 3 deletions trunk/fs/9p/v9fs.h
Original file line number Diff line number Diff line change
Expand Up @@ -91,6 +91,3 @@ void v9fs_session_cancel(struct v9fs_session_info *v9ses);
#define V9FS_DEFUSER "nobody"
#define V9FS_DEFANAME ""

/* inital pool sizes for fids and tags */
#define V9FS_START_FIDS 8192
#define V9FS_START_TIDS 256

0 comments on commit 114bb5b

Please sign in to comment.