Lines Matching refs:swap_lock
56 static DEFINE_SPINLOCK(swap_lock);
1651 spin_lock(&swap_lock); in swap_type_of()
1662 spin_unlock(&swap_lock); in swap_type_of()
1667 spin_unlock(&swap_lock); in swap_type_of()
1675 spin_lock(&swap_lock); in find_first_swap()
1682 spin_unlock(&swap_lock); in find_first_swap()
1685 spin_unlock(&swap_lock); in find_first_swap()
1714 spin_lock(&swap_lock); in count_swap_pages()
1726 spin_unlock(&swap_lock); in count_swap_pages()
2327 assert_spin_locked(&swap_lock); in _enable_swap_info()
2351 spin_lock(&swap_lock); in enable_swap_info()
2355 spin_unlock(&swap_lock); in enable_swap_info()
2360 spin_lock(&swap_lock); in enable_swap_info()
2364 spin_unlock(&swap_lock); in enable_swap_info()
2369 spin_lock(&swap_lock); in reinsert_swap_info()
2374 spin_unlock(&swap_lock); in reinsert_swap_info()
2381 spin_lock(&swap_lock); in has_usable_swap()
2384 spin_unlock(&swap_lock); in has_usable_swap()
2415 spin_lock(&swap_lock); in SYSCALL_DEFINE1()
2426 spin_unlock(&swap_lock); in SYSCALL_DEFINE1()
2433 spin_unlock(&swap_lock); in SYSCALL_DEFINE1()
2457 spin_unlock(&swap_lock); in SYSCALL_DEFINE1()
2495 spin_lock(&swap_lock); in SYSCALL_DEFINE1()
2503 spin_unlock(&swap_lock); in SYSCALL_DEFINE1()
2505 spin_lock(&swap_lock); in SYSCALL_DEFINE1()
2518 spin_unlock(&swap_lock); in SYSCALL_DEFINE1()
2550 spin_lock(&swap_lock); in SYSCALL_DEFINE1()
2552 spin_unlock(&swap_lock); in SYSCALL_DEFINE1()
2718 spin_lock(&swap_lock); in alloc_swap_info()
2724 spin_unlock(&swap_lock); in alloc_swap_info()
2750 spin_unlock(&swap_lock); in alloc_swap_info()
3216 spin_lock(&swap_lock); in SYSCALL_DEFINE2()
3219 spin_unlock(&swap_lock); in SYSCALL_DEFINE2()
3245 spin_lock(&swap_lock); in si_swapinfo()
3254 spin_unlock(&swap_lock); in si_swapinfo()