diff options
author | Latchesar Ionkov <lucho@ionkov.net> | 2006-01-08 04:05:02 -0500 |
---|---|---|
committer | Linus Torvalds <torvalds@g5.osdl.org> | 2006-01-08 23:14:06 -0500 |
commit | 1dac06b20dcc8078dab037bd70652c69c67ba672 (patch) | |
tree | 34436f474074aa2760604555e3aa9b02df18fce2 /fs/9p/mux.h | |
parent | 531b1094b74365dcc55fa464d28a9a2497ae825d (diff) |
[PATCH] v9fs: handle kthread_create failure, minor bugfixes
- remove unnecessary -ENOMEM assignments
- return correct value when buf_check_size for second time in a buffer
- handle failures when create_workqueue and kthread_create are called
- use kzalloc instead of kmalloc/memset 0
- v9fs_str_copy and v9fs_str_compare were buggy, were used only in one
place, correct the logic and move it to the place it is used.
Signed-off-by: Latchesar Ionkov <lucho@ionkov.net>
Cc: Eric Van Hensbergen <ericvh@ericvh.myip.org>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
Diffstat (limited to 'fs/9p/mux.h')
-rw-r--r-- | fs/9p/mux.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/fs/9p/mux.h b/fs/9p/mux.h index 02b13b14b05b..9473b84f24b2 100644 --- a/fs/9p/mux.h +++ b/fs/9p/mux.h | |||
@@ -40,7 +40,7 @@ struct v9fs_mux_data; | |||
40 | typedef void (*v9fs_mux_req_callback)(void *a, struct v9fs_fcall *tc, | 40 | typedef void (*v9fs_mux_req_callback)(void *a, struct v9fs_fcall *tc, |
41 | struct v9fs_fcall *rc, int err); | 41 | struct v9fs_fcall *rc, int err); |
42 | 42 | ||
43 | void v9fs_mux_global_init(void); | 43 | int v9fs_mux_global_init(void); |
44 | void v9fs_mux_global_exit(void); | 44 | void v9fs_mux_global_exit(void); |
45 | 45 | ||
46 | struct v9fs_mux_data *v9fs_mux_init(struct v9fs_transport *trans, int msize, | 46 | struct v9fs_mux_data *v9fs_mux_init(struct v9fs_transport *trans, int msize, |
@@ -55,3 +55,4 @@ int v9fs_mux_rpcnb(struct v9fs_mux_data *m, struct v9fs_fcall *tc, | |||
55 | 55 | ||
56 | void v9fs_mux_flush(struct v9fs_mux_data *m, int sendflush); | 56 | void v9fs_mux_flush(struct v9fs_mux_data *m, int sendflush); |
57 | void v9fs_mux_cancel(struct v9fs_mux_data *m, int err); | 57 | void v9fs_mux_cancel(struct v9fs_mux_data *m, int err); |
58 | int v9fs_errstr2errno(char *errstr, int len); | ||