Loading fs/fuse/file.c +2 −0 Original line number Diff line number Diff line Loading @@ -54,6 +54,7 @@ struct fuse_file *fuse_file_alloc(struct fuse_conn *fc) if (unlikely(!ff)) return NULL; ff->fc = fc; ff->reserved_req = fuse_request_alloc(); if (unlikely(!ff->reserved_req)) { kfree(ff); Loading Loading @@ -111,6 +112,7 @@ void fuse_finish_open(struct inode *inode, struct file *file, if (outarg->open_flags & FOPEN_NONSEEKABLE) nonseekable_open(inode, file); ff->fh = outarg->fh; ff->nodeid = get_node_id(inode); file->private_data = fuse_file_get(ff); } Loading fs/fuse/fuse_i.h +8 −2 Original line number Diff line number Diff line Loading @@ -97,8 +97,13 @@ struct fuse_inode { struct list_head writepages; }; struct fuse_conn; /** FUSE specific file data */ struct fuse_file { /** Fuse connection for this file */ struct fuse_conn *fc; /** Request reserved for flush and release */ struct fuse_req *reserved_req; Loading @@ -108,6 +113,9 @@ struct fuse_file { /** File handle used by userspace */ u64 fh; /** Node id of this file */ u64 nodeid; /** Refcount */ atomic_t count; Loading Loading @@ -185,8 +193,6 @@ enum fuse_req_state { FUSE_REQ_FINISHED }; struct fuse_conn; /** * A request to the client */ Loading Loading
fs/fuse/file.c +2 −0 Original line number Diff line number Diff line Loading @@ -54,6 +54,7 @@ struct fuse_file *fuse_file_alloc(struct fuse_conn *fc) if (unlikely(!ff)) return NULL; ff->fc = fc; ff->reserved_req = fuse_request_alloc(); if (unlikely(!ff->reserved_req)) { kfree(ff); Loading Loading @@ -111,6 +112,7 @@ void fuse_finish_open(struct inode *inode, struct file *file, if (outarg->open_flags & FOPEN_NONSEEKABLE) nonseekable_open(inode, file); ff->fh = outarg->fh; ff->nodeid = get_node_id(inode); file->private_data = fuse_file_get(ff); } Loading
fs/fuse/fuse_i.h +8 −2 Original line number Diff line number Diff line Loading @@ -97,8 +97,13 @@ struct fuse_inode { struct list_head writepages; }; struct fuse_conn; /** FUSE specific file data */ struct fuse_file { /** Fuse connection for this file */ struct fuse_conn *fc; /** Request reserved for flush and release */ struct fuse_req *reserved_req; Loading @@ -108,6 +113,9 @@ struct fuse_file { /** File handle used by userspace */ u64 fh; /** Node id of this file */ u64 nodeid; /** Refcount */ atomic_t count; Loading Loading @@ -185,8 +193,6 @@ enum fuse_req_state { FUSE_REQ_FINISHED }; struct fuse_conn; /** * A request to the client */ Loading