Lines Matching defs:file

3  * This file contians vfs file ops for 9P2000.
14 #include <linux/file.h>
34 * v9fs_file_open - open a file (or directory)
36 * @file: file being opened
40 int v9fs_file_open(struct inode *inode, struct file *file)
47 p9_debug(P9_DEBUG_VFS, "inode: %p file: %p\n", inode, file);
50 omode = v9fs_open_to_dotl_flags(file->f_flags);
52 omode = v9fs_uflags2omode(file->f_flags,
54 fid = file->private_data;
56 fid = v9fs_fid_clone(file_dentry(file));
63 p9_debug(P9_DEBUG_CACHE, "write-only file with writeback enabled, try opening O_RDWR\n");
77 if ((file->f_flags & O_APPEND) &&
79 generic_file_llseek(file, 0, SEEK_END);
81 file->private_data = fid;
87 file->f_mode & FMODE_WRITE);
89 v9fs_fid_add_modes(fid, v9ses->flags, v9ses->cache, file->f_flags);
95 * v9fs_file_lock - lock a file (or directory)
96 * @filp: file to be locked
98 * @fl: file lock structure
104 static int v9fs_file_lock(struct file *filp, int cmd, struct file_lock *fl)
118 static int v9fs_file_do_lock(struct file *filp, int cmd, struct file_lock *fl)
223 static int v9fs_file_getlock(struct file *filp, struct file_lock *fl)
281 * v9fs_file_lock_dotl - lock a file (or directory)
282 * @filp: file to be locked
284 * @fl: file lock structure
288 static int v9fs_file_lock_dotl(struct file *filp, int cmd, struct file_lock *fl)
311 * v9fs_file_flock_dotl - lock a file
312 * @filp: file to be locked
314 * @fl: file lock structure
318 static int v9fs_file_flock_dotl(struct file *filp, int cmd,
347 * v9fs_file_read_iter - read from a file
368 * v9fs_file_splice_read - splice-read from a file
369 * @in: The 9p file to read from
370 * @ppos: Where to find/update the file position
375 static ssize_t v9fs_file_splice_read(struct file *in, loff_t *ppos,
390 * v9fs_file_write_iter - write to a file
398 struct file *file = iocb->ki_filp;
399 struct p9_fid *fid = file->private_data;
410 static int v9fs_file_fsync(struct file *filp, loff_t start, loff_t end,
434 int v9fs_file_fsync_dotl(struct file *filp, loff_t start, loff_t end,
457 v9fs_file_mmap(struct file *filp, struct vm_area_struct *vma)