diff options
author | Miklos Szeredi <miklos@szeredi.hu> | 2006-01-17 01:14:29 -0500 |
---|---|---|
committer | Linus Torvalds <torvalds@g5.osdl.org> | 2006-01-17 02:15:30 -0500 |
commit | 6383bdaa2ed2d461d9f4d369dfaa9d610fc972e3 (patch) | |
tree | 2bdbc25280c0666c2f2f5869c5487541fa670579 /fs/fuse/dev.c | |
parent | 8bfc016d2e2fff71c6843257f0fd0b60876331ed (diff) |
[PATCH] fuse: miscellaneous cleanup
- remove some unneeded assignments
- use kzalloc instead of kmalloc + memset
- simplify setting sb->s_fs_info
- in fuse_send_init() use fuse_get_request() instead of
do_get_request() helper
Signed-off-by: Miklos Szeredi <miklos@szeredi.hu>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
Diffstat (limited to 'fs/fuse/dev.c')
-rw-r--r-- | fs/fuse/dev.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/fs/fuse/dev.c b/fs/fuse/dev.c index d76432b757c9..4f1ca7b119ed 100644 --- a/fs/fuse/dev.c +++ b/fs/fuse/dev.c | |||
@@ -361,8 +361,8 @@ void request_send_background(struct fuse_conn *fc, struct fuse_req *req) | |||
361 | void fuse_send_init(struct fuse_conn *fc) | 361 | void fuse_send_init(struct fuse_conn *fc) |
362 | { | 362 | { |
363 | /* This is called from fuse_read_super() so there's guaranteed | 363 | /* This is called from fuse_read_super() so there's guaranteed |
364 | to be a request available */ | 364 | to be exactly one request available */ |
365 | struct fuse_req *req = do_get_request(fc); | 365 | struct fuse_req *req = fuse_get_request(fc); |
366 | struct fuse_init_in *arg = &req->misc.init_in; | 366 | struct fuse_init_in *arg = &req->misc.init_in; |
367 | arg->major = FUSE_KERNEL_VERSION; | 367 | arg->major = FUSE_KERNEL_VERSION; |
368 | arg->minor = FUSE_KERNEL_MINOR_VERSION; | 368 | arg->minor = FUSE_KERNEL_MINOR_VERSION; |