Lines Matching refs:file
51 struct file *file = iocb->ki_filp; in ecryptfs_read_update_atime() local
55 path = ecryptfs_dentry_to_lower_path(file->f_path.dentry); in ecryptfs_read_update_atime()
104 static int ecryptfs_readdir(struct file *file, struct dir_context *ctx) in ecryptfs_readdir() argument
107 struct file *lower_file; in ecryptfs_readdir()
108 struct inode *inode = file_inode(file); in ecryptfs_readdir()
114 lower_file = ecryptfs_file_to_lower(file); in ecryptfs_readdir()
172 static int ecryptfs_mmap(struct file *file, struct vm_area_struct *vma) in ecryptfs_mmap() argument
174 struct file *lower_file = ecryptfs_file_to_lower(file); in ecryptfs_mmap()
182 return generic_file_mmap(file, vma); in ecryptfs_mmap()
194 static int ecryptfs_open(struct inode *inode, struct file *file) in ecryptfs_open() argument
198 struct dentry *ecryptfs_dentry = file->f_path.dentry; in ecryptfs_open()
205 ecryptfs_set_file_private(file, file_info); in ecryptfs_open()
230 == O_RDONLY && (file->f_flags & O_ACCMODE) != O_RDONLY) { in ecryptfs_open()
237 file, ecryptfs_inode_to_private(inode)->lower_file); in ecryptfs_open()
249 ecryptfs_file_to_private(file)); in ecryptfs_open()
263 static int ecryptfs_dir_open(struct inode *inode, struct file *file) in ecryptfs_dir_open() argument
265 struct dentry *ecryptfs_dentry = file->f_path.dentry; in ecryptfs_dir_open()
269 struct file *lower_file; in ecryptfs_dir_open()
273 ecryptfs_set_file_private(file, file_info); in ecryptfs_dir_open()
280 file->f_flags, current_cred()); in ecryptfs_dir_open()
289 ecryptfs_set_file_lower(file, lower_file); in ecryptfs_dir_open()
293 static int ecryptfs_flush(struct file *file, fl_owner_t td) in ecryptfs_flush() argument
295 struct file *lower_file = ecryptfs_file_to_lower(file); in ecryptfs_flush()
298 filemap_write_and_wait(file->f_mapping); in ecryptfs_flush()
305 static int ecryptfs_release(struct inode *inode, struct file *file) in ecryptfs_release() argument
309 ecryptfs_file_to_private(file)); in ecryptfs_release()
313 static int ecryptfs_dir_release(struct inode *inode, struct file *file) in ecryptfs_dir_release() argument
315 fput(ecryptfs_file_to_lower(file)); in ecryptfs_dir_release()
317 ecryptfs_file_to_private(file)); in ecryptfs_dir_release()
321 static loff_t ecryptfs_dir_llseek(struct file *file, loff_t offset, int whence) in ecryptfs_dir_llseek() argument
323 return vfs_llseek(ecryptfs_file_to_lower(file), offset, whence); in ecryptfs_dir_llseek()
327 ecryptfs_fsync(struct file *file, loff_t start, loff_t end, int datasync) in ecryptfs_fsync() argument
331 rc = filemap_write_and_wait(file->f_mapping); in ecryptfs_fsync()
335 return vfs_fsync(ecryptfs_file_to_lower(file), datasync); in ecryptfs_fsync()
338 static int ecryptfs_fasync(int fd, struct file *file, int flag) in ecryptfs_fasync() argument
341 struct file *lower_file = NULL; in ecryptfs_fasync()
343 lower_file = ecryptfs_file_to_lower(file); in ecryptfs_fasync()
350 ecryptfs_unlocked_ioctl(struct file *file, unsigned int cmd, unsigned long arg) in ecryptfs_unlocked_ioctl() argument
352 struct file *lower_file = ecryptfs_file_to_lower(file); in ecryptfs_unlocked_ioctl()
365 fsstack_copy_attr_all(file_inode(file), file_inode(lower_file)); in ecryptfs_unlocked_ioctl()
375 ecryptfs_compat_ioctl(struct file *file, unsigned int cmd, unsigned long arg) in ecryptfs_compat_ioctl() argument
377 struct file *lower_file = ecryptfs_file_to_lower(file); in ecryptfs_compat_ioctl()
389 fsstack_copy_attr_all(file_inode(file), file_inode(lower_file)); in ecryptfs_compat_ioctl()