Searched refs:swap_map (Results 1 - 2 of 2) sorted by last modified time
/linux-master/mm/ |
H A D | swapfile.c | 458 * si->swap_map directly. To make sure the discarding cluster isn't 462 memset(si->swap_map + idx * SWAPFILE_CLUSTER, 499 memset(si->swap_map + idx * SWAPFILE_CLUSTER, 628 static inline bool swap_range_empty(char *swap_map, unsigned int start, argument 634 if (swap_map[start + i]) 684 if (swap_range_empty(si->swap_map, tmp, nr_pages)) 812 if (data_race(!si->swap_map[offset])) { 817 if (vm_swap_full() && READ_ONCE(si->swap_map[offset]) == SWAP_HAS_CACHE) { 906 if (si->swap_map[offset]) 949 if (vm_swap_full() && si->swap_map[offse 2364 setup_swap_info(struct swap_info_struct *p, int prio, unsigned char *swap_map, struct swap_cluster_info *cluster_info) argument 2417 enable_swap_info(struct swap_info_struct *p, int prio, unsigned char *swap_map, struct swap_cluster_info *cluster_info) argument 2465 unsigned char *swap_map; local 2972 setup_swap_map_and_extents(struct swap_info_struct *p, union swap_header *swap_header, unsigned char *swap_map, struct swap_cluster_info *cluster_info, unsigned long maxpages, sector_t *span) argument 3066 unsigned char *swap_map = NULL; local [all...] |
/linux-master/include/linux/ |
H A D | swap.h | 213 SWP_CONTINUED = (1 << 5), /* swap_map has count continuation */ 228 /* Bit flag in swap_map */ 229 #define SWAP_HAS_CACHE 0x40 /* Flag page is cached, in first swap_map */ 230 #define COUNT_CONTINUED 0x80 /* Flag swap_map continuation for full count */ 232 /* Special value in first swap_map */ 237 /* Special value in each swap_map continuation */ 253 * and swap_info_struct->swap_map 300 unsigned int max; /* extent of the swap_map */ 301 unsigned char *swap_map; /* vmalloc'ed array of usage counts */ member in struct:swap_info_struct 304 unsigned int lowest_bit; /* index of first free in swap_map */ [all...] |
Completed in 224 milliseconds