Lines Matching defs:swapoff
113 /* Activity counter to indicate that a swapon or swapoff has occurred */
149 * be on avail_lists or not (except swapon / swapoff). By embedding the
996 static void del_from_avail_list(struct swap_info_struct *si, bool swapoff)
1003 if (swapoff) {
1006 * swapoff here so it's synchronized by both si->lock and
1015 * If not called by swapoff, take it off-list only if it's
1169 * enable_swap_info(), and smp_wmb() in swapoff.
1401 * prevent swapoff, such as the folio in swap cache is locked, RCU
1403 * because of swapoff. Then, we need to enclose all swap related
1408 * prevent swapoff, because synchronize_rcu() is called in swapoff()
1413 * via preventing the swap device from being swapoff, until
1416 * Notice that swapoff or swapoff+swapon can still happen before the
1419 * to prevent swapoff. The caller must be prepared for that. For
1424 * ... swapoff+swapon
1433 * swap device which has been swapoff. And in do_swap_page(), after
1436 * has been swapoff or swapoff+swapon.
2589 * swap_active_head needs to be priority ordered for swapoff(),
2674 SYSCALL_DEFINE1(swapoff, const char __user *, specialfile)
2762 * operations from racing with swapoff.
3625 * Help swapoff by noting that swap entry belongs to shmem/tmpfs
3712 * __swap_duplicate(): the swap device may be swapoff
3877 * free_swap_count_continuations - swapoff free all the continuation pages