aboutsummaryrefslogtreecommitdiffstats
path: root/fs/fuse/file.c
diff options
context:
space:
mode:
Diffstat (limited to 'fs/fuse/file.c')
-rw-r--r--fs/fuse/file.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/fs/fuse/file.c b/fs/fuse/file.c
index b83d7d86b527..3be030105354 100644
--- a/fs/fuse/file.c
+++ b/fs/fuse/file.c
@@ -54,6 +54,7 @@ struct fuse_file *fuse_file_alloc(struct fuse_conn *fc)
54 if (unlikely(!ff)) 54 if (unlikely(!ff))
55 return NULL; 55 return NULL;
56 56
57 ff->fc = fc;
57 ff->reserved_req = fuse_request_alloc(); 58 ff->reserved_req = fuse_request_alloc();
58 if (unlikely(!ff->reserved_req)) { 59 if (unlikely(!ff->reserved_req)) {
59 kfree(ff); 60 kfree(ff);
@@ -111,6 +112,7 @@ void fuse_finish_open(struct inode *inode, struct file *file,
111 if (outarg->open_flags & FOPEN_NONSEEKABLE) 112 if (outarg->open_flags & FOPEN_NONSEEKABLE)
112 nonseekable_open(inode, file); 113 nonseekable_open(inode, file);
113 ff->fh = outarg->fh; 114 ff->fh = outarg->fh;
115 ff->nodeid = get_node_id(inode);
114 file->private_data = fuse_file_get(ff); 116 file->private_data = fuse_file_get(ff);
115} 117}
116 118