Lines Matching defs:file

10  *  Linux VFS file operations.
52 int *index_return, struct file *file)
98 * Orangefs has no open, and orangefs checks file permissions
99 * on each file access. Posix requires that file permissions
104 * method. We can see if a file was successfully opened for
105 * read and or for write by looking at file->f_mode.
107 * When writes are flowing from the page cache, file is no
109 * file->f_mode before writing to the page cache.
111 * The mode of a file might change between when it is opened
118 if (file) {
119 open_for_write = file->f_mode & FMODE_WRITE;
120 open_for_read = file->f_mode & FMODE_READ;
340 static ssize_t orangefs_file_splice_read(struct file *in, loff_t *ppos,
378 struct file *file = vmf->vma->vm_file;
380 ret = orangefs_inode_getattr(file->f_mapping->host,
399 * Memory map a region of a file.
403 struct file *file = desc->file;
406 ret = orangefs_revalidate_mapping(file_inode(file));
411 "orangefs_file_mmap: called on %pD\n", file);
417 file_accessed(file);
426 * this file (i.e. no processes have it open).
428 * \note Not called when each file is closed.
430 static int orangefs_file_release(struct inode *inode, struct file *file)
434 file);
441 if (mapping_nrpages(file->f_mapping)) {
456 * Push all data for a specific file onto permanent storage.
458 static int orangefs_fsync(struct file *file,
465 ORANGEFS_I(file_inode(file));
468 ret = filemap_write_and_wait_range(file_inode(file)->i_mapping,
480 get_interruptible_flag(file_inode(file)));
491 * Change the file pointer position for an instance of an open file.
499 static loff_t orangefs_file_llseek(struct file *file, loff_t offset, int origin)
502 struct inode *inode = file_inode(file);
506 * revalidate the inode's file size.
507 * NOTE: We are only interested in file size here,
510 ret = orangefs_inode_getattr(file->f_mapping->host,
531 return generic_file_llseek(file, offset, origin);
538 static int orangefs_lock(struct file *filp, int cmd, struct file_lock *fl)
554 static int orangefs_flush(struct file *file, fl_owner_t id)
557 * This is vfs_fsync_range(file, 0, LLONG_MAX, 0) without the
566 r = filemap_write_and_wait_range(file->f_mapping, 0, LLONG_MAX);
573 /** ORANGEFS implementation of VFS file operations */