Lines Matching refs:swap_storage
143 ttm->swap_storage = NULL; in ttm_tt_init_fields()
166 if (ttm->swap_storage) in ttm_tt_fini()
167 fput(ttm->swap_storage); in ttm_tt_fini()
168 ttm->swap_storage = NULL; in ttm_tt_fini()
201 struct file *swap_storage; in ttm_tt_swapin() local
207 swap_storage = ttm->swap_storage; in ttm_tt_swapin()
208 BUG_ON(swap_storage == NULL); in ttm_tt_swapin()
210 swap_space = swap_storage->f_mapping; in ttm_tt_swapin()
230 fput(swap_storage); in ttm_tt_swapin()
231 ttm->swap_storage = NULL; in ttm_tt_swapin()
255 struct file *swap_storage; in ttm_tt_swapout() local
260 swap_storage = shmem_file_setup("ttm swap", size, 0); in ttm_tt_swapout()
261 if (IS_ERR(swap_storage)) { in ttm_tt_swapout()
263 return PTR_ERR(swap_storage); in ttm_tt_swapout()
266 swap_space = swap_storage->f_mapping; in ttm_tt_swapout()
286 ttm->swap_storage = swap_storage; in ttm_tt_swapout()
292 fput(swap_storage); in ttm_tt_swapout()