Lines Matching refs:swap_storage
155 ttm->swap_storage = NULL; in ttm_tt_init_fields()
178 if (ttm->swap_storage) in ttm_tt_fini()
179 fput(ttm->swap_storage); in ttm_tt_fini()
180 ttm->swap_storage = NULL; in ttm_tt_fini()
213 struct file *swap_storage; in ttm_tt_swapin() local
219 swap_storage = ttm->swap_storage; in ttm_tt_swapin()
220 BUG_ON(swap_storage == NULL); in ttm_tt_swapin()
222 swap_space = swap_storage->f_mapping; in ttm_tt_swapin()
242 fput(swap_storage); in ttm_tt_swapin()
243 ttm->swap_storage = NULL; in ttm_tt_swapin()
267 struct file *swap_storage; in ttm_tt_swapout() local
272 swap_storage = shmem_file_setup("ttm swap", size, 0); in ttm_tt_swapout()
273 if (IS_ERR(swap_storage)) { in ttm_tt_swapout()
275 return PTR_ERR(swap_storage); in ttm_tt_swapout()
278 swap_space = swap_storage->f_mapping; in ttm_tt_swapout()
298 ttm->swap_storage = swap_storage; in ttm_tt_swapout()
304 fput(swap_storage); in ttm_tt_swapout()