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
131 * Magic header for a swap area. The first part of the union is
132 * what the swap magic looks like for the old (limited to 128MB)
133 * swap area format, the second part of the union adds - in the
137 * Having the magic at the end of the PAGE_SIZE makes detecting swap
145 char magic[10]; /* SWAP-SPACE or SWAPSPACE2 */
179 * A swap extent maps a range of a swapfile's PAGE_SIZE pages onto a range of
180 * disk blocks. A rbtree of swap extents maps the entire swapfile (Where the
202 SWP_WRITEOK = (1 << 1), /* ok to write to this swap? */
210 SWP_AREA_DISCARD = (1 << 9), /* single-time swap area discards */
211 SWP_PAGE_DISCARD = (1 << 10), /* freed swap page-cluster discards */
234 * We use this to track usage of a cluster. A cluster is a block of swap disk
247 * elements correspond to the swap
258 * We assign a cluster to each CPU, so each CPU can allocate swap entry from
273 * The in-memory structure used to track swap areas.
276 struct percpu_ref users; /* indicate and keep swap device valid. */
278 signed short prio; /* swap priority of this type */
287 unsigned int pages; /* total of usable pages of swap */
292 struct percpu_cluster __percpu *percpu_cluster; /* per cpu's swap location */
293 struct rb_root swap_extent_root;/* root of the swap extent rbtree */
294 struct block_device *bdev; /* swap device or bdev of swap file */
316 * protect swap count continuation page
386 /* linux/mm/swap.c */
480 /* Swap 50% full? Release swapcache more aggressively.. */