Lines Matching full:swap
6 * Swap reorganised 29.12.95, Stephen Tweedie
13 #include <linux/swap.h>
101 printk("%lu pages in swap cache\n", total_swapcache_pages()); in show_swap_cache_info()
102 printk("Swap cache stats: add %lu, delete %lu, find %lu/%lu\n", in show_swap_cache_info()
105 printk("Free swap = %ldkB\n", in show_swap_cache_info()
107 printk("Total swap = %lukB\n", total_swap_pages << (PAGE_SHIFT - 10)); in show_swap_cache_info()
175 * been verified to be in the swap cache.
202 * add_to_swap - allocate swap space for a page
203 * @page: page we want to move to swap
205 * Allocate swap space for the page and add the page to the
206 * swap cache. Caller needs to hold the page lock.
226 * deadlock in the swap out path. in add_to_swap()
229 * Add it to the swap cache. in add_to_swap()
247 * is swap in later. Always setting the dirty bit for the page solves in add_to_swap()
261 * been verified to be in the swap cache and locked.
282 * If we are the only user, then try to free up the swap cache.
298 * Perform a free_page(), also freeing any swap cache associated with
329 * Lookup a swap entry in the swap cache. A found page will be returned
389 * First check the swap cache. Since this is normally in __read_swap_cache_async()
398 * Just skip read ahead for unused swap slot. in __read_swap_cache_async()
401 * swap entry in swap cache and marking swap slot in __read_swap_cache_async()
409 * Get a new page to read into from swap. in __read_swap_cache_async()
425 * Swap entry may have been freed since our caller observed it. in __read_swap_cache_async()
471 * Locate a page of swap in physical memory, reserving swap cache space
474 * the swap entry is no longer in use.
507 * (and don't even bother to check whether swap type is same). in __swapin_nr_pages()
551 * swap_cluster_readahead - swap in pages in hope we need them soon
552 * @entry: swap entry of this memory
558 * Primitive swap readahead code. We simply read an aligned block of
559 * (1 << page_cluster) entries in the swap area. This method is chosen
590 if (!start_offset) /* First page is swap header. */ in swap_cluster_readahead()
633 /* swap cache doesn't use writeback related tags */ in init_swap_address_space()
782 * swapin_readahead - swap in pages in hope we need them soon
783 * @entry: swap entry of this memory
789 * It's a main entry function for swap readahead. By the configuration,
838 swap_kobj = kobject_create_and_add("swap", mm_kobj); in swap_init_sysfs()
840 pr_err("failed to create swap kobject\n"); in swap_init_sysfs()
845 pr_err("failed to register swap group\n"); in swap_init_sysfs()