Lines Matching full:swap
6 * Swap reorganised 29.12.95, Stephen Tweedie
13 #include <linux/swap.h>
81 /* Avoid get_swap_device() to warn for bad swap entry */ in total_swapcache_pages()
102 printk("%lu pages in swap cache\n", total_swapcache_pages()); in show_swap_cache_info()
103 printk("Swap cache stats: add %lu, delete %lu, find %lu/%lu\n", in show_swap_cache_info()
106 printk("Free swap = %ldkB\n", in show_swap_cache_info()
108 printk("Total swap = %lukB\n", total_swap_pages << (PAGE_SHIFT - 10)); in show_swap_cache_info()
182 * been verified to be in the swap cache.
211 * add_to_swap - allocate swap space for a page
212 * @page: page we want to move to swap
214 * Allocate swap space for the page and add the page to the
215 * swap cache. Caller needs to hold the page lock.
235 * deadlock in the swap out path. in add_to_swap()
238 * Add it to the swap cache. in add_to_swap()
255 * is swap in later. Always setting the dirty bit for the page solves in add_to_swap()
269 * been verified to be in the swap cache and locked.
318 * If we are the only user, then try to free up the swap cache.
334 * Perform a free_page(), also freeing any swap cache associated with
365 * Lookup a swap entry in the swap cache. A found page will be returned
420 * find_get_incore_page - Find and get a page from the page or swap caches.
425 * page in the swap cache.
465 * First check the swap cache. Since this is normally in __read_swap_cache_async()
479 * Just skip read ahead for unused swap slot. in __read_swap_cache_async()
482 * swap entry in swap cache and marking swap slot in __read_swap_cache_async()
490 * Get a new page to read into from swap. Allocate it now, in __read_swap_cache_async()
499 * Swap entry may have been freed since our caller observed it. in __read_swap_cache_async()
514 * in swap_map, but not yet added its page to swap cache. in __read_swap_cache_async()
520 * The swap entry is ours to swap in. Prepare the new page. in __read_swap_cache_async()
553 * Locate a page of swap in physical memory, reserving swap cache space
556 * the swap entry is no longer in use.
589 * (and don't even bother to check whether swap type is same). in __swapin_nr_pages()
633 * swap_cluster_readahead - swap in pages in hope we need them soon
634 * @entry: swap entry of this memory
640 * Primitive swap readahead code. We simply read an aligned block of
641 * (1 << page_cluster) entries in the swap area. This method is chosen
672 /* Test swap type to make sure the dereference is safe */ in swap_cluster_readahead()
683 if (!start_offset) /* First page is swap header. */ in swap_cluster_readahead()
726 /* swap cache doesn't use writeback related tags */ in init_swap_address_space()
824 * swap_vma_readahead - swap in pages in hope we need them soon
825 * @fentry: swap entry of this memory
831 * Primitive swap readahead code. We simply read in a few pages whoes
885 * swapin_readahead - swap in pages in hope we need them soon
886 * @entry: swap entry of this memory
892 * It's a main entry function for swap readahead. By the configuration,
941 swap_kobj = kobject_create_and_add("swap", mm_kobj); in swap_init_sysfs()
943 pr_err("failed to create swap kobject\n"); in swap_init_sysfs()
948 pr_err("failed to register swap group\n"); in swap_init_sysfs()