Lines Matching full:backup
26 * @backup: The struct backup pointer used to obtain the handle
29 void ttm_backup_drop(struct file *backup, pgoff_t handle) in ttm_backup_drop() argument
34 shmem_truncate_range(file_inode(backup), start, in ttm_backup_drop()
41 * @backup: The struct backup pointer used to back up the page.
49 int ttm_backup_copy_page(struct file *backup, struct page *dst, in ttm_backup_copy_page() argument
52 struct address_space *mapping = backup->f_mapping; in ttm_backup_copy_page()
67 * ttm_backup_backup_page() - Backup a page
68 * @backup: The struct backup pointer to use.
72 * @idx: A unique integer for each page and each struct backup.
73 * This allows the backup implementation to avoid managing
84 * we're not allowed to start backup IO.
94 ttm_backup_backup_page(struct file *backup, struct page *page, in ttm_backup_backup_page() argument
98 struct address_space *mapping = backup->f_mapping; in ttm_backup_backup_page()
143 * ttm_backup_fini() - Free the struct backup resources after last use.
144 * @backup: Pointer to the struct backup whose resources to free.
146 * After a call to this function, it's illegal to use the @backup pointer.
148 void ttm_backup_fini(struct file *backup) in ttm_backup_fini() argument
150 fput(backup); in ttm_backup_fini()
154 * ttm_backup_bytes_avail() - Report the approximate number of bytes of backup space
155 * left for backup.
158 * backup attempt is meaningful.
160 * Return: An approximate size of backup space available.
176 * ttm_backup_shmem_create() - Create a shmem-based struct backup.
179 * Create a backup utilizing shmem objects.
186 return shmem_file_setup("ttm shmem backup", size, 0); in ttm_backup_shmem_create()