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()
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()
181 * been verified to be in the swap cache.
210 * add_to_swap - allocate swap space for a page
211 * @page: page we want to move to swap
213 * Allocate swap space for the page and add the page to the
214 * swap cache. Caller needs to hold the page lock.
234 * deadlock in the swap out path. in add_to_swap()
237 * Add it to the swap cache. in add_to_swap()
254 * is swap in later. Always setting the dirty bit for the page solves in add_to_swap()
268 * been verified to be in the swap cache and locked.
317 * If we are the only user, then try to free up the swap cache.
333 * Perform a free_page(), also freeing any swap cache associated with
364 * Lookup a swap entry in the swap cache. A found page will be returned
419 * find_get_incore_page - Find and get a page from the page or swap caches.
424 * page in the swap cache.
464 * First check the swap cache. Since this is normally in __read_swap_cache_async()
478 * Just skip read ahead for unused swap slot. in __read_swap_cache_async()
481 * swap entry in swap cache and marking swap slot in __read_swap_cache_async()
489 * Get a new page to read into from swap. Allocate it now, in __read_swap_cache_async()
498 * Swap entry may have been freed since our caller observed it. in __read_swap_cache_async()
513 * in swap_map, but not yet added its page to swap cache. in __read_swap_cache_async()
519 * The swap entry is ours to swap in. Prepare the new page. in __read_swap_cache_async()
552 * Locate a page of swap in physical memory, reserving swap cache space
555 * the swap entry is no longer in use.
588 * (and don't even bother to check whether swap type is same). in __swapin_nr_pages()
632 * swap_cluster_readahead - swap in pages in hope we need them soon
633 * @entry: swap entry of this memory
639 * Primitive swap readahead code. We simply read an aligned block of
640 * (1 << page_cluster) entries in the swap area. This method is chosen
667 /* Test swap type to make sure the dereference is safe */ in swap_cluster_readahead()
678 if (!start_offset) /* First page is swap header. */ in swap_cluster_readahead()
721 /* swap cache doesn't use writeback related tags */ in init_swap_address_space()
819 * swap_vma_readahead - swap in pages in hope we need them soon
820 * @fentry: swap entry of this memory
826 * Primitive swap readahead code. We simply read in a few pages whoes
880 * swapin_readahead - swap in pages in hope we need them soon
881 * @entry: swap entry of this memory
887 * It's a main entry function for swap readahead. By the configuration,
936 swap_kobj = kobject_create_and_add("swap", mm_kobj); in swap_init_sysfs()
938 pr_err("failed to create swap kobject\n"); in swap_init_sysfs()
943 pr_err("failed to register swap group\n"); in swap_init_sysfs()