Lines Matching defs:file
10 * Linux VFS file operations.
51 int *index_return, struct file *file)
97 * Orangefs has no open, and orangefs checks file permissions
98 * on each file access. Posix requires that file permissions
103 * method. We can see if a file was successfully opened for
104 * read and or for write by looking at file->f_mode.
106 * When writes are flowing from the page cache, file is no
108 * file->f_mode before writing to the page cache.
110 * The mode of a file might change between when it is opened
117 if (file) {
118 open_for_write = file->f_mode & FMODE_WRITE;
119 open_for_read = file->f_mode & FMODE_READ;
257 * copy either a page or the whole file into the io
395 * Perform a miscellaneous operation on a file.
397 static long orangefs_ioctl(struct file *file, unsigned int cmd, unsigned long arg)
399 struct inode *inode = file_inode(file);
428 * is turned on for a file. The user is not allowed to turn
458 struct file *file = vmf->vma->vm_file;
460 ret = orangefs_inode_getattr(file->f_mapping->host,
479 * Memory map a region of a file.
481 static int orangefs_file_mmap(struct file *file, struct vm_area_struct *vma)
485 ret = orangefs_revalidate_mapping(file_inode(file));
491 (file ?
492 (char *)file->f_path.dentry->d_name.name :
499 file_accessed(file);
508 * this file (i.e. no processes have it open).
510 * \note Not called when each file is closed.
512 static int orangefs_file_release(struct inode *inode, struct file *file)
516 file);
523 if (file_inode(file) &&
524 file_inode(file)->i_mapping &&
525 mapping_nrpages(&file_inode(file)->i_data)) {
540 * Push all data for a specific file onto permanent storage.
542 static int orangefs_fsync(struct file *file,
549 ORANGEFS_I(file_inode(file));
552 ret = filemap_write_and_wait_range(file_inode(file)->i_mapping,
564 get_interruptible_flag(file_inode(file)));
575 * Change the file pointer position for an instance of an open file.
583 static loff_t orangefs_file_llseek(struct file *file, loff_t offset, int origin)
586 struct inode *inode = file_inode(file);
590 * revalidate the inode's file size.
591 * NOTE: We are only interested in file size here,
594 ret = orangefs_inode_getattr(file->f_mapping->host,
615 return generic_file_llseek(file, offset, origin);
622 static int orangefs_lock(struct file *filp, int cmd, struct file_lock *fl)
638 static int orangefs_flush(struct file *file, fl_owner_t id)
641 * This is vfs_fsync_range(file, 0, LLONG_MAX, 0) without the
650 r = filemap_write_and_wait_range(file->f_mapping, 0, LLONG_MAX);
657 /** ORANGEFS implementation of VFS file operations */