Lines Matching full:swap

23 #define SWAP_FLAG_PREFER	0x8000	/* set if swap priority specified */
26 #define SWAP_FLAG_DISCARD 0x10000 /* enable discard for swap */
27 #define SWAP_FLAG_DISCARD_ONCE 0x20000 /* discard swap area at swapon-time */
42 * be swapped to. The swap type and the offset into that swap type are
51 * Use some of the swap files numbers for other purposes. This
99 * Magic header for a swap area. The first part of the union is
100 * what the swap magic looks like for the old (limited to 128MB)
101 * swap area format, the second part of the union adds - in the
105 * Having the magic at the end of the PAGE_SIZE makes detecting swap
113 char magic[10]; /* SWAP-SPACE or SWAPSPACE2 */
143 * A swap extent maps a range of a swapfile's PAGE_SIZE pages onto a range of
144 * disk blocks. A list of swap extents maps the entire swapfile. (Where the
166 SWP_WRITEOK = (1 << 1), /* ok to write to this swap? */
174 SWP_AREA_DISCARD = (1 << 9), /* single-time swap area discards */
175 SWP_PAGE_DISCARD = (1 << 10), /* freed swap page-cluster discards */
178 SWP_VALID = (1 << 13), /* swap is valid to be operated on? */
199 * We use this to track usage of a cluster. A cluster is a block of swap disk
212 * elements correspond to the swap
223 * We assign a cluster to each CPU, so each CPU can allocate swap entry from
238 * The in-memory structure used to track swap areas.
242 signed short prio; /* swap priority of this type */
251 unsigned int pages; /* total of usable pages of swap */
256 struct percpu_cluster __percpu *percpu_cluster; /* per cpu's swap location */
257 struct rb_root swap_extent_root;/* root of the swap extent rbtree */
258 struct block_device *bdev; /* swap device or bdev of swap file */
279 * protect swap count continuation page
336 /* linux/mm/swap.c */
406 /* One swap address space for each 64M swap space */
447 /* Swap 50% full? Release swapcache more aggressively.. */