Lines Matching defs:file
12 #include <linux/file.h>
24 * Called on cached file open() and on first mmap() of direct_io file.
25 * Takes cached_io inode mode reference to be dropped on file release.
103 /* fuse inode holds a single refcount of backing file */
115 /* Takes uncached_io inode mode reference to be dropped on file release */
160 * operations go directly to the server, but mmap is done on the backing file.
168 static int fuse_file_passthrough_open(struct inode *inode, struct file *file)
170 struct fuse_file *ff = file->private_data;
175 /* Check allowed conditions for file open in passthrough mode */
180 fb = fuse_passthrough_open(file, inode,
185 /* First passthrough file open denies caching inode io mode */
196 /* Request access to submit new io to inode via open file */
197 int fuse_file_io_open(struct file *file, struct inode *inode)
199 struct fuse_file *ff = file->private_data;
225 * First passthrough file open denies caching inode io mode.
226 * First caching file open enters caching inode io mode.
228 * Note that if user opens a file open with O_DIRECT, but server did
237 err = fuse_file_passthrough_open(inode, file);
246 pr_debug("failed to open file in requested io mode (open_flags=0x%x, err=%i).\n",
249 * The file open mode determines the inode io mode.
256 /* No more pending io and no new io possible to inode via open/mmapped file */
262 * Last passthrough file close allows caching inode io mode.
263 * Last caching file close exits caching inode io mode.