Lines Matching full:swap

6  *  Swap reorganised 29.12.95, Stephen Tweedie
14 #include <linux/swap.h>
26 #include "swap.h"
66 printk("%lu pages in swap cache\n", total_swapcache_pages()); in show_swap_cache_info()
67 printk("Free swap = %ldkB\n", K(get_nr_swap_pages())); in show_swap_cache_info()
68 printk("Total swap = %lukB\n", K(total_swap_pages)); in show_swap_cache_info()
104 folio->swap = entry; in add_to_swap_cache()
138 * been verified to be in the swap cache.
160 folio->swap.val = 0; in __delete_from_swap_cache()
168 * add_to_swap - allocate swap space for a folio
169 * @folio: folio we want to move to swap
171 * Allocate swap space for the folio and add the folio to the
172 * swap cache.
175 * Return: Whether the folio was added to the swap cache.
195 * deadlock in the swap out path. in add_to_swap()
198 * Add it to the swap cache. in add_to_swap()
230 * been verified to be in the swap cache and locked.
236 swp_entry_t entry = folio->swap; in delete_from_swap_cache()
278 * If we are the only user, then try to free up the swap cache.
297 * Perform a free_page(), also freeing any swap cache associated with
325 * Lookup a swap entry in the swap cache. A found folio will be returned
330 * Caller must lock the swap device or hold a reference to keep it valid.
376 * filemap_get_incore_folio - Find and get a folio from the page or swap caches.
381 * folio in the swap cache.
429 * First check the swap cache. Since this is normally in __read_swap_cache_async()
439 * Just skip read ahead for unused swap slot. in __read_swap_cache_async()
442 * swap entry in swap cache and marking swap slot in __read_swap_cache_async()
450 * Get a new folio to read into from swap. Allocate it now, in __read_swap_cache_async()
460 * Swap entry may have been freed since our caller observed it. in __read_swap_cache_async()
473 * is set but the folio is not the swap cache yet. This can in __read_swap_cache_async()
486 * in swap_map, but not yet added its folio to swap cache. in __read_swap_cache_async()
492 * The swap entry is ours to swap in. Prepare the new folio. in __read_swap_cache_async()
527 * Locate a page of swap in physical memory, reserving swap cache space
530 * the swap entry is no longer in use.
534 * swap cache folio lock.
573 * (and don't even bother to check whether swap type is same). in __swapin_nr_pages()
617 * swap_cluster_readahead - swap in pages in hope we need them soon
618 * @entry: swap entry of this memory
625 * Primitive swap readahead code. We simply read an aligned block of
626 * (1 << page_cluster) entries in the swap area. This method is chosen
631 * are used for every page of the readahead: neighbouring pages on swap
654 if (!start_offset) /* First page is swap header. */ in swap_cluster_readahead()
704 /* swap cache doesn't use writeback related tags */ in init_swap_address_space()
784 * swap_vma_readahead - swap in pages in hope we need them soon
785 * @targ_entry: swap entry of the targeted memory
793 * Primitive swap readahead code. We simply read in a few pages whose
867 * swapin_readahead - swap in pages in hope we need them soon
868 * @entry: swap entry of this memory
874 * It's a main entry function for swap readahead. By the configuration,
931 swap_kobj = kobject_create_and_add("swap", mm_kobj); in swap_init_sysfs()
933 pr_err("failed to create swap kobject\n"); in swap_init_sysfs()
938 pr_err("failed to register swap group\n"); in swap_init_sysfs()