Lines Matching defs:inode

3  * FUSE inode io modes.
25 * Takes cached_io inode mode reference to be dropped on file release.
30 int fuse_file_cached_io_open(struct inode *inode, struct fuse_file *ff)
32 struct fuse_inode *fi = get_fuse_inode(inode);
51 * Check if inode entered passthrough io mode while waiting for parallel
91 /* deny conflicting backing files on same fuse inode */
103 /* fuse inode holds a single refcount of backing file */
115 /* Takes uncached_io inode mode reference to be dropped on file release */
116 static int fuse_file_uncached_io_open(struct inode *inode,
120 struct fuse_inode *fi = get_fuse_inode(inode);
161 * FOPEN_PASSTHROUGH mode should not co-exist with any users of the fuse inode
168 static int fuse_file_passthrough_open(struct inode *inode, struct file *file)
171 struct fuse_conn *fc = get_fuse_conn(inode);
180 fb = fuse_passthrough_open(file, inode,
185 /* First passthrough file open denies caching inode io mode */
186 err = fuse_file_uncached_io_open(inode, ff, fb);
196 /* Request access to submit new io to inode via open file */
197 int fuse_file_io_open(struct file *file, struct inode *inode)
200 struct fuse_inode *fi = get_fuse_inode(inode);
207 if (FUSE_IS_DAX(inode) || !ff->args)
211 * Server is expected to use FOPEN_PASSTHROUGH for all opens of an inode
225 * First passthrough file open denies caching inode io mode.
226 * First caching file open enters caching inode io mode.
230 * so we put the inode in caching mode to prevent parallel dio.
237 err = fuse_file_passthrough_open(inode, file);
239 err = fuse_file_cached_io_open(inode, ff);
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 */
257 void fuse_file_io_release(struct fuse_file *ff, struct inode *inode)
259 struct fuse_inode *fi = get_fuse_inode(inode);
262 * Last passthrough file close allows caching inode io mode.
263 * Last caching file close exits caching inode io mode.