Searched refs:swap_storage (Results 1 – 3 of 3) sorted by relevance
158 ttm->swap_storage = NULL; in ttm_tt_init_fields()181 if (ttm->swap_storage) in ttm_tt_fini()182 fput(ttm->swap_storage); in ttm_tt_fini()183 ttm->swap_storage = NULL; in ttm_tt_fini()216 struct file *swap_storage; in ttm_tt_swapin() local222 swap_storage = ttm->swap_storage; in ttm_tt_swapin()223 BUG_ON(swap_storage == NULL); in ttm_tt_swapin()225 swap_space = swap_storage->f_mapping; in ttm_tt_swapin()245 fput(swap_storage); in ttm_tt_swapin()246 ttm->swap_storage = NULL; in ttm_tt_swapin()[all …]
64 KUNIT_ASSERT_NULL(test, tt->swap_storage); in ttm_tt_init_basic()147 tt->swap_storage = shmem; in ttm_tt_fini_shmem()150 KUNIT_ASSERT_NULL(test, tt->swap_storage); in ttm_tt_fini_shmem()360 KUNIT_ASSERT_NOT_NULL(test, tt->swap_storage); in ttm_tt_swapin_basic()369 KUNIT_ASSERT_NULL(test, tt->swap_storage); in ttm_tt_swapin_basic()
107 struct file *swap_storage; member