diff options
author | Miklos Szeredi <miklos@szeredi.hu> | 2006-01-16 22:14:29 -0800 |
---|---|---|
committer | Linus Torvalds <torvalds@g5.osdl.org> | 2006-01-16 23:15:30 -0800 |
commit | 6383bdaa2ed2d461d9f4d369dfaa9d610fc972e3 (patch) | |
tree | 2bdbc25280c0666c2f2f5869c5487541fa670579 /fs/fuse/fuse_i.h | |
parent | 8bfc016d2e2fff71c6843257f0fd0b60876331ed (diff) | |
download | op-kernel-dev-6383bdaa2ed2d461d9f4d369dfaa9d610fc972e3.zip op-kernel-dev-6383bdaa2ed2d461d9f4d369dfaa9d610fc972e3.tar.gz |
[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/fuse_i.h')
-rw-r--r-- | fs/fuse/fuse_i.h | 7 |
1 files changed, 1 insertions, 6 deletions
diff --git a/fs/fuse/fuse_i.h b/fs/fuse/fuse_i.h index 74c8d09..27937e8 100644 --- a/fs/fuse/fuse_i.h +++ b/fs/fuse/fuse_i.h @@ -280,14 +280,9 @@ struct fuse_conn { struct backing_dev_info bdi; }; -static inline struct fuse_conn **get_fuse_conn_super_p(struct super_block *sb) -{ - return (struct fuse_conn **) &sb->s_fs_info; -} - static inline struct fuse_conn *get_fuse_conn_super(struct super_block *sb) { - return *get_fuse_conn_super_p(sb); + return sb->s_fs_info; } static inline struct fuse_conn *get_fuse_conn(struct inode *inode) |