diff options
author | Miklos Szeredi <miklos@szeredi.hu> | 2006-01-17 07:14:29 +0100 |
---|---|---|
committer | Linus Torvalds <torvalds@g5.osdl.org> | 2006-01-17 08:15:30 +0100 |
commit | 6383bdaa2ed2d461d9f4d369dfaa9d610fc972e3 (patch) | |
tree | 2bdbc25280c0666c2f2f5869c5487541fa670579 /fs/fuse/dev.c | |
parent | [PATCH] fuse: uninline some functions (diff) | |
download | linux-6383bdaa2ed2d461d9f4d369dfaa9d610fc972e3.tar.xz linux-6383bdaa2ed2d461d9f4d369dfaa9d610fc972e3.zip |
[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) void fuse_send_init(struct fuse_conn *fc) { /* This is called from fuse_read_super() so there's guaranteed - to be a request available */ - struct fuse_req *req = do_get_request(fc); + to be exactly one request available */ + struct fuse_req *req = fuse_get_request(fc); struct fuse_init_in *arg = &req->misc.init_in; arg->major = FUSE_KERNEL_VERSION; arg->minor = FUSE_KERNEL_MINOR_VERSION; |