Lines Matching defs:file

9 #include <linux/file.h>
34 int hmdfs_file_open_cloud(struct inode *inode, struct file *file)
39 struct file *lower_file;
59 dir_path = hmdfs_get_dentry_relative_path(file->f_path.dentry);
67 file->f_flags | O_DIRECT, file->f_mode);
75 file->private_data = gfi;
81 int hmdfs_file_release_cloud(struct inode *inode, struct file *file)
83 struct hmdfs_file_info *gfi = hmdfs_f(file);
85 file->private_data = NULL;
91 static int hmdfs_file_flush_cloud(struct file *file, fl_owner_t id)
93 struct hmdfs_file_info *gfi = hmdfs_f(file);
103 int hmdfs_file_mmap_cloud(struct file *file, struct vm_area_struct *vma)
105 struct hmdfs_file_info *private_data = file->private_data;
106 struct file *realfile = NULL;
119 if (WARN_ON(file != vma->vm_file))
127 fput(file);
129 file_accessed(file);
134 static int hmdfs_do_readpages_cloud(struct file *filp, int cnt,
138 struct file *lower_filp;
186 static int hmdfs_readpages_cloud(struct file *filp,
234 static int hmdfs_readpage(struct file *file, struct page *page)
239 struct hmdfs_file_info *gfi = file->private_data;
240 struct file *lower_file;
295 struct file *file, struct file *handler,
371 static int hmdfs_iterate_cloud(struct file *file, struct dir_context *ctx)
379 file->f_inode->i_sb->s_fs_info, file, file->private_data, ctx);
384 trace_hmdfs_iterate_remote(file->f_path.dentry, start_pos, ctx->pos,
389 int hmdfs_dir_open_cloud(struct inode *inode, struct file *file)
393 get_cloud_cache_file(file->f_path.dentry, file->f_inode->i_sb->s_fs_info);
395 file->f_path.dentry);
397 file->private_data = cache_item->filp;
398 get_file(file->private_data);
406 static int hmdfs_dir_release_cloud(struct inode *inode, struct file *file)
408 if (file->private_data)
409 fput(file->private_data);
410 file->private_data = NULL;