|
|
@@ -179,7 +179,9 @@ void fuse_finish_open(struct inode *inode, struct file *file)
|
|
|
file->f_op = &fuse_direct_io_file_operations;
|
|
|
if (!(ff->open_flags & FOPEN_KEEP_CACHE))
|
|
|
invalidate_inode_pages2(inode->i_mapping);
|
|
|
- if (ff->open_flags & FOPEN_NONSEEKABLE)
|
|
|
+ if (ff->open_flags & FOPEN_STREAM)
|
|
|
+ stream_open(inode, file);
|
|
|
+ else if (ff->open_flags & FOPEN_NONSEEKABLE)
|
|
|
nonseekable_open(inode, file);
|
|
|
if (fc->atomic_o_trunc && (file->f_flags & O_TRUNC)) {
|
|
|
struct fuse_inode *fi = get_fuse_inode(inode);
|