• Home
  • Raw
  • Download

Lines Matching refs:file

51 	int *index_return, struct file *file)  in wait_for_direct_io()  argument
117 if (file) { in wait_for_direct_io()
118 open_for_write = file->f_mode & FMODE_WRITE; in wait_for_direct_io()
119 open_for_read = file->f_mode & FMODE_READ; in wait_for_direct_io()
397 static long orangefs_ioctl(struct file *file, unsigned int cmd, unsigned long arg) in orangefs_ioctl() argument
399 struct inode *inode = file_inode(file); in orangefs_ioctl()
458 struct file *file = vmf->vma->vm_file; in orangefs_fault() local
460 ret = orangefs_inode_getattr(file->f_mapping->host, in orangefs_fault()
481 static int orangefs_file_mmap(struct file *file, struct vm_area_struct *vma) in orangefs_file_mmap() argument
485 ret = orangefs_revalidate_mapping(file_inode(file)); in orangefs_file_mmap()
491 (file ? in orangefs_file_mmap()
492 (char *)file->f_path.dentry->d_name.name : in orangefs_file_mmap()
499 file_accessed(file); in orangefs_file_mmap()
512 static int orangefs_file_release(struct inode *inode, struct file *file) in orangefs_file_release() argument
516 file); in orangefs_file_release()
523 if (file_inode(file) && in orangefs_file_release()
524 file_inode(file)->i_mapping && in orangefs_file_release()
525 mapping_nrpages(&file_inode(file)->i_data)) { in orangefs_file_release()
542 static int orangefs_fsync(struct file *file, in orangefs_fsync() argument
549 ORANGEFS_I(file_inode(file)); in orangefs_fsync()
552 ret = filemap_write_and_wait_range(file_inode(file)->i_mapping, in orangefs_fsync()
564 get_interruptible_flag(file_inode(file))); in orangefs_fsync()
583 static loff_t orangefs_file_llseek(struct file *file, loff_t offset, int origin) in orangefs_file_llseek() argument
586 struct inode *inode = file_inode(file); in orangefs_file_llseek()
594 ret = orangefs_inode_getattr(file->f_mapping->host, in orangefs_file_llseek()
615 return generic_file_llseek(file, offset, origin); in orangefs_file_llseek()
622 static int orangefs_lock(struct file *filp, int cmd, struct file_lock *fl) in orangefs_lock()
638 static int orangefs_flush(struct file *file, fl_owner_t id) in orangefs_flush() argument
650 r = filemap_write_and_wait_range(file->f_mapping, 0, LLONG_MAX); in orangefs_flush()