Searched refs:swap_map (Results 1 - 2 of 2) sorted by relevance

/linux-master/mm/
H A Dswapfile.c465 * si->swap_map directly. To make sure the discarding cluster isn't
469 memset(si->swap_map + idx * SWAPFILE_CLUSTER,
506 memset(si->swap_map + idx * SWAPFILE_CLUSTER,
665 if (!si->swap_map[tmp])
792 if (data_race(!si->swap_map[offset])) {
797 if (vm_swap_full() && READ_ONCE(si->swap_map[offset]) == SWAP_HAS_CACHE) {
863 if (si->swap_map[offset])
903 if (vm_swap_full() && si->swap_map[offset] == SWAP_HAS_CACHE) {
915 if (si->swap_map[offset]) {
922 WRITE_ONCE(si->swap_map[offse
2316 setup_swap_info(struct swap_info_struct *p, int prio, unsigned char *swap_map, struct swap_cluster_info *cluster_info) argument
2369 enable_swap_info(struct swap_info_struct *p, int prio, unsigned char *swap_map, struct swap_cluster_info *cluster_info) argument
2413 unsigned char *swap_map; local
2919 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
3013 unsigned char *swap_map = NULL; local
[all...]
/linux-master/include/linux/
H A Dswap.h213 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
288 unsigned int max; /* extent of the swap_map */
289 unsigned char *swap_map; /* vmalloc'ed array of usage counts */ member in struct:swap_info_struct
292 unsigned int lowest_bit; /* index of first free in swap_map */
[all...]

Completed in 131 milliseconds