Lines Matching defs:file

5  * This file contians vfs file ops for 9P2000.
15 #include <linux/file.h>
38 * v9fs_file_open - open a file (or directory)
40 * @file: file being opened
44 int v9fs_file_open(struct inode *inode, struct file *file)
52 p9_debug(P9_DEBUG_VFS, "inode: %p file: %p\n", inode, file);
56 omode = v9fs_open_to_dotl_flags(file->f_flags);
58 omode = v9fs_uflags2omode(file->f_flags,
60 fid = file->private_data;
62 fid = v9fs_fid_clone(file_dentry(file));
71 if ((file->f_flags & O_APPEND) &&
73 generic_file_llseek(file, 0, SEEK_END);
76 file->private_data = fid;
80 ((file->f_flags & O_ACCMODE) != O_RDONLY)) {
88 fid = v9fs_writeback_fid(file_dentry(file));
98 v9fs_cache_inode_set_cookie(inode, file);
101 p9_client_clunk(file->private_data);
102 file->private_data = NULL;
107 * v9fs_file_lock - lock a file (or directory)
108 * @filp: file to be locked
110 * @fl: file lock structure
116 static int v9fs_file_lock(struct file *filp, int cmd, struct file_lock *fl)
135 static int v9fs_file_do_lock(struct file *filp, int cmd, struct file_lock *fl)
241 static int v9fs_file_getlock(struct file *filp, struct file_lock *fl)
299 * v9fs_file_lock_dotl - lock a file (or directory)
300 * @filp: file to be locked
302 * @fl: file lock structure
306 static int v9fs_file_lock_dotl(struct file *filp, int cmd, struct file_lock *fl)
334 * v9fs_file_flock_dotl - lock a file
335 * @filp: file to be locked
337 * @fl: file lock structure
341 static int v9fs_file_flock_dotl(struct file *filp, int cmd,
374 * v9fs_file_read - read from a file
375 * @filp: file pointer to read
403 * v9fs_file_write - write to a file
404 * @filp: file pointer to write
413 struct file *file = iocb->ki_filp;
423 retval = p9_client_write(file->private_data, iocb->ki_pos, from, &err);
425 struct inode *inode = file_inode(file);
448 static int v9fs_file_fsync(struct file *filp, loff_t start, loff_t end,
472 int v9fs_file_fsync_dotl(struct file *filp, loff_t start, loff_t end,
495 v9fs_file_mmap(struct file *filp, struct vm_area_struct *vma)
508 v9fs_mmap_file_mmap(struct file *filp, struct vm_area_struct *vma)
550 struct file *filp = vmf->vma->vm_file;
557 /* Update file times before taking page lock */
576 * v9fs_mmap_file_read - read from a file
577 * @filp: file pointer to read
591 * v9fs_mmap_file_write - write to a file
592 * @filp: file pointer to write