Lines Matching full:swap

25 #define SWAP_FLAG_PREFER	0x8000	/* set if swap priority specified */
28 #define SWAP_FLAG_DISCARD 0x10000 /* enable discard for swap */
29 #define SWAP_FLAG_DISCARD_ONCE 0x20000 /* discard swap area at swapon-time */
44 * be swapped to. The swap type and the offset into that swap type are
53 * Use some of the swap files numbers for other purposes. This
123 * Magic header for a swap area. The first part of the union is
124 * what the swap magic looks like for the old (limited to 128MB)
125 * swap area format, the second part of the union adds - in the
129 * Having the magic at the end of the PAGE_SIZE makes detecting swap
137 char magic[10]; /* SWAP-SPACE or SWAPSPACE2 */
186 * A swap extent maps a range of a swapfile's PAGE_SIZE pages onto a range of
187 * disk blocks. A rbtree of swap extents maps the entire swapfile (Where the
209 SWP_WRITEOK = (1 << 1), /* ok to write to this swap? */
217 SWP_AREA_DISCARD = (1 << 9), /* single-time swap area discards */
218 SWP_PAGE_DISCARD = (1 << 10), /* freed swap page-cluster discards */
241 * We use this to track usage of a cluster. A cluster is a block of swap disk
253 * elements corresponding to the swap cluster.
266 * The first page in the swap file is the swap header, which is always marked
280 * We assign a cluster to each CPU, so each CPU can allocate swap entry from
289 * The in-memory structure used to track swap areas.
292 struct percpu_ref users; /* indicate and keep swap device valid. */
294 signed short prio; /* swap priority of this type */
310 unsigned int pages; /* total of usable pages of swap */
315 struct percpu_cluster __percpu *percpu_cluster; /* per cpu's swap location */
316 struct rb_root swap_extent_root;/* root of the swap extent rbtree */
317 struct block_device *bdev; /* swap device or bdev of swap file */
334 * protect swap count continuation page
355 swp_entry_t entry = folio->swap; in page_swap_entry()
376 /* linux/mm/swap.c */
468 /* Swap 50% full? Release swapcache more aggressively.. */