aboutsummaryrefslogtreecommitdiffstats
path: root/fs/fuse/fuse_i.h
diff options
context:
space:
mode:
Diffstat (limited to 'fs/fuse/fuse_i.h')
-rw-r--r--fs/fuse/fuse_i.h17
1 files changed, 8 insertions, 9 deletions
diff --git a/fs/fuse/fuse_i.h b/fs/fuse/fuse_i.h
index e824a09d3151..6ef1e5f5873b 100644
--- a/fs/fuse/fuse_i.h
+++ b/fs/fuse/fuse_i.h
@@ -196,9 +196,6 @@ struct fuse_req {
196 * unmounted. 196 * unmounted.
197 */ 197 */
198struct fuse_conn { 198struct fuse_conn {
199 /** Reference count */
200 int count;
201
202 /** The user id for this mount */ 199 /** The user id for this mount */
203 uid_t user_id; 200 uid_t user_id;
204 201
@@ -288,6 +285,9 @@ struct fuse_conn {
288 285
289 /** Backing dev info */ 286 /** Backing dev info */
290 struct backing_dev_info bdi; 287 struct backing_dev_info bdi;
288
289 /** kobject */
290 struct kobject kobj;
291}; 291};
292 292
293static inline struct fuse_conn *get_fuse_conn_super(struct super_block *sb) 293static inline struct fuse_conn *get_fuse_conn_super(struct super_block *sb)
@@ -300,6 +300,11 @@ static inline struct fuse_conn *get_fuse_conn(struct inode *inode)
300 return get_fuse_conn_super(inode->i_sb); 300 return get_fuse_conn_super(inode->i_sb);
301} 301}
302 302
303static inline struct fuse_conn *get_fuse_conn_kobj(struct kobject *obj)
304{
305 return container_of(obj, struct fuse_conn, kobj);
306}
307
303static inline struct fuse_inode *get_fuse_inode(struct inode *inode) 308static inline struct fuse_inode *get_fuse_inode(struct inode *inode)
304{ 309{
305 return container_of(inode, struct fuse_inode, inode); 310 return container_of(inode, struct fuse_inode, inode);
@@ -400,12 +405,6 @@ void fuse_init_symlink(struct inode *inode);
400void fuse_change_attributes(struct inode *inode, struct fuse_attr *attr); 405void fuse_change_attributes(struct inode *inode, struct fuse_attr *attr);
401 406
402/** 407/**
403 * Check if the connection can be released, and if yes, then free the
404 * connection structure
405 */
406void fuse_release_conn(struct fuse_conn *fc);
407
408/**
409 * Initialize the client device 408 * Initialize the client device
410 */ 409 */
411int fuse_dev_init(void); 410int fuse_dev_init(void);