Lines Matching refs:file
38 struct file *filp = iocb->ki_filp; in hmdfs_file_read_iter_cloud()
40 struct file *lower_file = NULL; in hmdfs_file_read_iter_cloud()
53 int hmdfs_file_open_cloud(struct inode *inode, struct file *file) in hmdfs_file_open_cloud() argument
58 struct file *lower_file; in hmdfs_file_open_cloud()
78 dir_path = hmdfs_get_dentry_relative_path(file->f_path.dentry); in hmdfs_file_open_cloud()
86 file->f_flags, file->f_mode); in hmdfs_file_open_cloud()
94 file->private_data = gfi; in hmdfs_file_open_cloud()
100 int hmdfs_file_release_cloud(struct inode *inode, struct file *file) in hmdfs_file_release_cloud() argument
102 struct hmdfs_file_info *gfi = hmdfs_f(file); in hmdfs_file_release_cloud()
104 file->private_data = NULL; in hmdfs_file_release_cloud()
110 static int hmdfs_file_flush_cloud(struct file *file, fl_owner_t id) in hmdfs_file_flush_cloud() argument
112 struct hmdfs_file_info *gfi = hmdfs_f(file); in hmdfs_file_flush_cloud()
122 int hmdfs_file_mmap_cloud(struct file *file, struct vm_area_struct *vma) in hmdfs_file_mmap_cloud() argument
124 struct hmdfs_file_info *private_data = file->private_data; in hmdfs_file_mmap_cloud()
125 struct file *realfile = NULL; in hmdfs_file_mmap_cloud()
138 if (WARN_ON(file != vma->vm_file)) in hmdfs_file_mmap_cloud()
146 fput(file); in hmdfs_file_mmap_cloud()
148 file_accessed(file); in hmdfs_file_mmap_cloud()
177 struct file *file, struct file *handler, in analysis_dentry_file_from_cloud() argument
253 static int hmdfs_iterate_cloud(struct file *file, struct dir_context *ctx) in hmdfs_iterate_cloud() argument
261 file->f_inode->i_sb->s_fs_info, file, file->private_data, ctx); in hmdfs_iterate_cloud()
266 trace_hmdfs_iterate_remote(file->f_path.dentry, start_pos, ctx->pos, in hmdfs_iterate_cloud()
271 int hmdfs_dir_open_cloud(struct inode *inode, struct file *file) in hmdfs_dir_open_cloud() argument
275 get_cloud_cache_file(file->f_path.dentry, file->f_inode->i_sb->s_fs_info); in hmdfs_dir_open_cloud()
277 file->f_path.dentry); in hmdfs_dir_open_cloud()
279 file->private_data = cache_item->filp; in hmdfs_dir_open_cloud()
280 get_file(file->private_data); in hmdfs_dir_open_cloud()
288 static int hmdfs_dir_release_cloud(struct inode *inode, struct file *file) in hmdfs_dir_release_cloud() argument
290 if (file->private_data) in hmdfs_dir_release_cloud()
291 fput(file->private_data); in hmdfs_dir_release_cloud()
292 file->private_data = NULL; in hmdfs_dir_release_cloud()