Lines Matching refs:new_file
248 struct file *new_file; in ovl_sync_file() local
251 new_file = ovl_path_open(path, O_LARGEFILE | O_RDONLY); in ovl_sync_file()
252 if (IS_ERR(new_file)) in ovl_sync_file()
253 return PTR_ERR(new_file); in ovl_sync_file()
255 err = vfs_fsync(new_file, 0); in ovl_sync_file()
256 fput(new_file); in ovl_sync_file()
262 struct file *new_file, loff_t len, in ovl_copy_up_file() argument
285 cloned = vfs_clone_file_range(old_file, 0, new_file, 0, len, 0); in ovl_copy_up_file()
292 error = rw_verify_area(WRITE, new_file, &new_pos, len); in ovl_copy_up_file()
351 new_file, &new_pos, in ovl_copy_up_file()
363 error = vfs_fsync(new_file, 0); in ovl_copy_up_file()
645 struct file *new_file; in ovl_copy_up_data() local
651 new_file = ovl_path_open(temp, O_LARGEFILE | O_WRONLY); in ovl_copy_up_data()
652 if (IS_ERR(new_file)) in ovl_copy_up_data()
653 return PTR_ERR(new_file); in ovl_copy_up_data()
655 err = ovl_copy_up_file(ofs, c->dentry, new_file, c->stat.size, in ovl_copy_up_data()
657 fput(new_file); in ovl_copy_up_data()