Lines Matching refs:file

53 	struct file *realfile;
54 struct file *upperfile;
242 struct file *realfile; in ovl_dir_read()
267 static void ovl_dir_reset(struct file *file) in ovl_dir_reset() argument
269 struct ovl_dir_file *od = file->private_data; in ovl_dir_reset()
271 struct dentry *dentry = file->f_path.dentry; in ovl_dir_reset()
363 static int ovl_iterate(struct file *file, struct dir_context *ctx) in ovl_iterate() argument
365 struct ovl_dir_file *od = file->private_data; in ovl_iterate()
366 struct dentry *dentry = file->f_path.dentry; in ovl_iterate()
370 ovl_dir_reset(file); in ovl_iterate()
397 static loff_t ovl_dir_llseek(struct file *file, loff_t offset, int origin) in ovl_dir_llseek() argument
400 struct ovl_dir_file *od = file->private_data; in ovl_dir_llseek()
402 mutex_lock(&file_inode(file)->i_mutex); in ovl_dir_llseek()
403 if (!file->f_pos) in ovl_dir_llseek()
404 ovl_dir_reset(file); in ovl_dir_llseek()
408 file->f_pos = od->realfile->f_pos; in ovl_dir_llseek()
414 offset += file->f_pos; in ovl_dir_llseek()
424 if (offset != file->f_pos) { in ovl_dir_llseek()
425 file->f_pos = offset; in ovl_dir_llseek()
432 mutex_unlock(&file_inode(file)->i_mutex); in ovl_dir_llseek()
437 static int ovl_dir_fsync(struct file *file, loff_t start, loff_t end, in ovl_dir_fsync() argument
440 struct ovl_dir_file *od = file->private_data; in ovl_dir_fsync()
441 struct dentry *dentry = file->f_path.dentry; in ovl_dir_fsync()
442 struct file *realfile = od->realfile; in ovl_dir_fsync()
448 struct inode *inode = file_inode(file); in ovl_dir_fsync()
477 static int ovl_dir_release(struct inode *inode, struct file *file) in ovl_dir_release() argument
479 struct ovl_dir_file *od = file->private_data; in ovl_dir_release()
483 ovl_cache_put(od, file->f_path.dentry); in ovl_dir_release()
494 static int ovl_dir_open(struct inode *inode, struct file *file) in ovl_dir_open() argument
497 struct file *realfile; in ovl_dir_open()
505 type = ovl_path_real(file->f_path.dentry, &realpath); in ovl_dir_open()
506 realfile = ovl_path_open(&realpath, file->f_flags); in ovl_dir_open()
514 file->private_data = od; in ovl_dir_open()