• Home
  • Raw
  • Download

Lines Matching refs:swap_map

463 	memset(si->swap_map + idx * SWAPFILE_CLUSTER,  in swap_cluster_schedule_discard()
500 memset(si->swap_map + idx * SWAPFILE_CLUSTER, in swap_do_scheduled_discard()
651 if (!si->swap_map[tmp]) in scan_swap_map_try_ssd_cluster()
845 if (si->swap_map[offset]) in scan_swap_map_slots()
885 if (vm_swap_full() && si->swap_map[offset] == SWAP_HAS_CACHE) { in scan_swap_map_slots()
897 if (si->swap_map[offset]) { in scan_swap_map_slots()
904 WRITE_ONCE(si->swap_map[offset], usage); in scan_swap_map_slots()
931 } else if (si->cluster_nr && !si->swap_map[++offset]) { in scan_swap_map_slots()
951 if (!si->swap_map[offset]) in scan_swap_map_slots()
964 if (data_race(!si->swap_map[offset])) { in scan_swap_map_slots()
969 READ_ONCE(si->swap_map[offset]) == SWAP_HAS_CACHE) { in scan_swap_map_slots()
981 if (data_race(!si->swap_map[offset])) { in scan_swap_map_slots()
986 READ_ONCE(si->swap_map[offset]) == SWAP_HAS_CACHE) { in scan_swap_map_slots()
1030 map = si->swap_map + offset; in swap_alloc_cluster()
1047 memset(si->swap_map + offset, 0, SWAPFILE_CLUSTER); in swap_free_cluster()
1218 if (data_race(!p->swap_map[swp_offset(entry)])) in _swap_info_get()
1261 count = p->swap_map[offset]; in __swap_entry_free_locked()
1287 WRITE_ONCE(p->swap_map[offset], usage); in __swap_entry_free_locked()
1289 WRITE_ONCE(p->swap_map[offset], SWAP_HAS_CACHE); in __swap_entry_free_locked()
1380 count = p->swap_map[offset]; in swap_entry_free()
1382 p->swap_map[offset] = 0; in swap_entry_free()
1424 map = si->swap_map + offset; in put_swap_page()
1524 count = swap_count(p->swap_map[offset]); in page_swapcount()
1538 count = swap_count(si->swap_map[offset]); in __swap_count()
1551 count = swap_count(si->swap_map[offset]); in swap_swapcount()
1595 count = swap_count(p->swap_map[offset]); in swp_swapcount()
1602 page = vmalloc_to_page(p->swap_map + offset); in swp_swapcount()
1624 unsigned char *map = si->swap_map; in swap_page_trans_huge_swapped()
1694 map = si->swap_map; in page_trans_huge_map_swapcount()
1989 volatile unsigned char *swap_map; in unuse_pte_range() local
2006 swap_map = &si->swap_map[offset]; in unuse_pte_range()
2019 if (*swap_map == 0 || *swap_map == SWAP_MAP_BAD) in unuse_pte_range()
2180 count = READ_ONCE(si->swap_map[i]); in find_next_to_unuse()
2498 unsigned char *swap_map, in setup_swap_info() argument
2522 p->swap_map = swap_map; in setup_swap_info()
2552 unsigned char *swap_map, in enable_swap_info() argument
2559 setup_swap_info(p, prio, swap_map, cluster_info); in enable_swap_info()
2578 setup_swap_info(p, p->prio, p->swap_map, p->cluster_info); in reinsert_swap_info()
2598 unsigned char *swap_map; in SYSCALL_DEFINE1() local
2725 swap_map = p->swap_map; in SYSCALL_DEFINE1()
2726 p->swap_map = NULL; in SYSCALL_DEFINE1()
2740 vfree(swap_map); in SYSCALL_DEFINE1()
2808 if (!(si->flags & SWP_USED) || !si->swap_map) in swap_start()
2829 if (!(si->flags & SWP_USED) || !si->swap_map) in swap_next()
3110 unsigned char *swap_map, in setup_swap_map_and_extents() argument
3132 swap_map[page_nr] = SWAP_MAP_BAD; in setup_swap_map_and_extents()
3147 swap_map[0] = SWAP_MAP_BAD; in setup_swap_map_and_extents()
3215 unsigned char *swap_map = NULL; in SYSCALL_DEFINE2() local
3285 swap_map = vzalloc(maxpages); in SYSCALL_DEFINE2()
3286 if (!swap_map) { in SYSCALL_DEFINE2()
3346 nr_extents = setup_swap_map_and_extents(p, swap_header, swap_map, in SYSCALL_DEFINE2()
3410 enable_swap_info(p, prio, swap_map, cluster_info, frontswap_map); in SYSCALL_DEFINE2()
3448 vfree(swap_map); in SYSCALL_DEFINE2()
3516 count = p->swap_map[offset]; in __swap_duplicate()
3554 WRITE_ONCE(p->swap_map[offset], count | has_cache); in __swap_duplicate()
3676 count = si->swap_map[offset] & ~SWAP_HAS_CACHE; in add_swap_count_continuation()
3697 head = vmalloc_to_page(si->swap_map + offset); in add_swap_count_continuation()
3765 head = vmalloc_to_page(si->swap_map + offset); in swap_count_continued()
3847 head = vmalloc_to_page(si->swap_map + offset); in free_swap_count_continuations()