Lines Matching full:ff
30 int fuse_file_cached_io_open(struct inode *inode, struct fuse_file *ff) in fuse_file_cached_io_open() argument
35 if (!ff->args) in fuse_file_cached_io_open()
60 WARN_ON(ff->iomode == IOM_UNCACHED); in fuse_file_cached_io_open()
61 if (ff->iomode == IOM_NONE) { in fuse_file_cached_io_open()
62 ff->iomode = IOM_CACHED; in fuse_file_cached_io_open()
71 static void fuse_file_cached_io_release(struct fuse_file *ff, in fuse_file_cached_io_release() argument
76 WARN_ON(ff->iomode != IOM_CACHED); in fuse_file_cached_io_release()
77 ff->iomode = IOM_NONE; in fuse_file_cached_io_release()
117 struct fuse_file *ff, in fuse_file_uncached_io_open() argument
127 WARN_ON(ff->iomode != IOM_NONE); in fuse_file_uncached_io_open()
128 ff->iomode = IOM_UNCACHED; in fuse_file_uncached_io_open()
149 static void fuse_file_uncached_io_release(struct fuse_file *ff, in fuse_file_uncached_io_release() argument
152 WARN_ON(ff->iomode != IOM_UNCACHED); in fuse_file_uncached_io_release()
153 ff->iomode = IOM_NONE; in fuse_file_uncached_io_release()
170 struct fuse_file *ff = file->private_data; in fuse_file_passthrough_open() local
177 (ff->open_flags & ~FOPEN_PASSTHROUGH_MASK)) in fuse_file_passthrough_open()
181 ff->args->open_outarg.backing_id); in fuse_file_passthrough_open()
186 err = fuse_file_uncached_io_open(inode, ff, fb); in fuse_file_passthrough_open()
190 fuse_passthrough_release(ff, fb); in fuse_file_passthrough_open()
199 struct fuse_file *ff = file->private_data; in fuse_file_io_open() local
207 if (FUSE_IS_DAX(inode) || !ff->args) in fuse_file_io_open()
215 if (fuse_inode_backing(fi) && !(ff->open_flags & FOPEN_PASSTHROUGH)) in fuse_file_io_open()
221 if (!(ff->open_flags & FOPEN_DIRECT_IO)) in fuse_file_io_open()
222 ff->open_flags &= ~FOPEN_PARALLEL_DIRECT_WRITES; in fuse_file_io_open()
232 if ((ff->open_flags & FOPEN_DIRECT_IO) && in fuse_file_io_open()
233 !(ff->open_flags & FOPEN_PASSTHROUGH)) in fuse_file_io_open()
236 if (ff->open_flags & FOPEN_PASSTHROUGH) in fuse_file_io_open()
239 err = fuse_file_cached_io_open(inode, ff); in fuse_file_io_open()
247 ff->open_flags, err); in fuse_file_io_open()
257 void fuse_file_io_release(struct fuse_file *ff, struct inode *inode) in fuse_file_io_release() argument
265 switch (ff->iomode) { in fuse_file_io_release()
270 fuse_file_uncached_io_release(ff, fi); in fuse_file_io_release()
273 fuse_file_cached_io_release(ff, fi); in fuse_file_io_release()