Lines Matching refs:swap_storage
143 ttm->swap_storage = NULL; in ttm_tt_init_fields()
165 if (ttm->swap_storage) in ttm_tt_fini()
166 fput(ttm->swap_storage); in ttm_tt_fini()
167 ttm->swap_storage = NULL; in ttm_tt_fini()
200 struct file *swap_storage; in ttm_tt_swapin() local
206 swap_storage = ttm->swap_storage; in ttm_tt_swapin()
207 BUG_ON(swap_storage == NULL); in ttm_tt_swapin()
209 swap_space = swap_storage->f_mapping; in ttm_tt_swapin()
229 fput(swap_storage); in ttm_tt_swapin()
230 ttm->swap_storage = NULL; in ttm_tt_swapin()
254 struct file *swap_storage; in ttm_tt_swapout() local
259 swap_storage = shmem_file_setup("ttm swap", size, 0); in ttm_tt_swapout()
260 if (IS_ERR(swap_storage)) { in ttm_tt_swapout()
262 return PTR_ERR(swap_storage); in ttm_tt_swapout()
265 swap_space = swap_storage->f_mapping; in ttm_tt_swapout()
285 ttm->swap_storage = swap_storage; in ttm_tt_swapout()
291 fput(swap_storage); in ttm_tt_swapout()