Lines Matching defs:file

11 #include <linux/file.h>
88 ASSERTCMP(object->file, ==, NULL);
103 * Adjust the size of a cache file if necessary to match the DIO size. We keep
106 * careful of someone expanding the file and accidentally accreting the
112 struct file *file = object->file;
123 if (!file)
126 oi_size = i_size_read(file_inode(file));
130 inode_lock(file_inode(file));
133 * file, we need to discard the partial page so that we pick up new
141 ret = notify_change(&nop_mnt_idmap, file->f_path.dentry,
151 ret = notify_change(&nop_mnt_idmap, file->f_path.dentry,
155 inode_unlock(file_inode(file));
158 trace_cachefiles_io_error(NULL, file_inode(file), ret,
228 struct file *file, loff_t new_size)
231 struct inode *inode = file_inode(file);
242 ret = vfs_truncate(&file->f_path, dio_size);
244 trace_cachefiles_io_error(object, file_inode(file), ret,
247 cachefiles_remove_object_xattr(cache, object, file->f_path.dentry);
256 ret = vfs_fallocate(file, FALLOC_FL_ZERO_RANGE,
259 trace_cachefiles_io_error(object, file_inode(file), ret,
262 cachefiles_remove_object_xattr(cache, object, file->f_path.dentry);
280 struct file *file = cachefiles_cres_file(cres);
287 cachefiles_shorten_object(object, file, new_size);
293 /* The file is being expanded. We don't need to do anything
339 cachefiles_unmark_inode_in_use(object, object->file);
340 if (object->file) {
341 fput(object->file);
342 object->file = NULL;
367 if (object->file) {
383 struct file *new_file, *old_file;
390 if (!object->file) {
404 old_file = object->file;
405 object->file = new_file;