Lines Matching defs:file
8 struct file *file)
10 struct cachefiles_object *object = file->private_data;
45 struct file *file = object->file;
51 if (!file)
55 ret = __cachefiles_prepare_write(object, file, &pos, &len, true);
60 trace_cachefiles_ondemand_fd_write(object, file_inode(file), pos, len);
61 ret = __cachefiles_write(object, file, pos, iter, NULL, NULL);
68 static loff_t cachefiles_ondemand_fd_llseek(struct file *filp, loff_t pos,
72 struct file *file = object->file;
74 if (!file)
77 return vfs_llseek(file, pos, whence);
80 static long cachefiles_ondemand_fd_ioctl(struct file *filp, unsigned int ioctl,
189 struct file *file;
209 file = anon_inode_getfile("[cachefiles]", &cachefiles_ondemand_fd_fops,
211 if (IS_ERR(file)) {
212 ret = PTR_ERR(file);
216 file->f_mode |= FMODE_PWRITE | FMODE_LSEEK;
217 fd_install(fd, file);
483 * CacheFiles will firstly check the cache file under the root cache
485 * creating a new tmpfile as the cache file. Reuse the previously