aboutsummaryrefslogtreecommitdiffstats
path: root/fs/fuse/fuse_i.h
diff options
context:
space:
mode:
authorMiklos Szeredi <miklos@szeredi.hu>2006-01-17 01:14:29 -0500
committerLinus Torvalds <torvalds@g5.osdl.org>2006-01-17 02:15:30 -0500
commit6383bdaa2ed2d461d9f4d369dfaa9d610fc972e3 (patch)
tree2bdbc25280c0666c2f2f5869c5487541fa670579 /fs/fuse/fuse_i.h
parent8bfc016d2e2fff71c6843257f0fd0b60876331ed (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/fuse_i.h')
-rw-r--r--fs/fuse/fuse_i.h7
1 files changed, 1 insertions, 6 deletions
diff --git a/fs/fuse/fuse_i.h b/fs/fuse/fuse_i.h
index 74c8d098a14a..27937e8018eb 100644
--- a/fs/fuse/fuse_i.h
+++ b/fs/fuse/fuse_i.h
@@ -280,14 +280,9 @@ struct fuse_conn {
280 struct backing_dev_info bdi; 280 struct backing_dev_info bdi;
281}; 281};
282 282
283static inline struct fuse_conn **get_fuse_conn_super_p(struct super_block *sb)
284{
285 return (struct fuse_conn **) &sb->s_fs_info;
286}
287
288static inline struct fuse_conn *get_fuse_conn_super(struct super_block *sb) 283static inline struct fuse_conn *get_fuse_conn_super(struct super_block *sb)
289{ 284{
290 return *get_fuse_conn_super_p(sb); 285 return sb->s_fs_info;
291} 286}
292 287
293static inline struct fuse_conn *get_fuse_conn(struct inode *inode) 288static inline struct fuse_conn *get_fuse_conn(struct inode *inode)