Lines Matching refs:highest_bit
703 if (end == si->highest_bit) in swap_range_alloc()
704 WRITE_ONCE(si->highest_bit, si->highest_bit - nr_entries); in swap_range_alloc()
708 si->highest_bit = 0; in swap_range_alloc()
732 if (end > si->highest_bit) { in swap_range_free()
733 bool was_full = !si->highest_bit; in swap_range_free()
735 WRITE_ONCE(si->highest_bit, end); in swap_range_free()
774 if (si->highest_bit <= si->lowest_bit) in set_cluster_next()
776 next = get_random_u32_inclusive(si->lowest_bit, si->highest_bit); in set_cluster_next()
856 for (; last_in_cluster <= si->highest_bit; offset++) { in scan_swap_map_slots()
890 if (!si->highest_bit) in scan_swap_map_slots()
892 if (offset > si->highest_bit) in scan_swap_map_slots()
924 if ((n_ret == nr) || (offset >= si->highest_bit)) in scan_swap_map_slots()
960 scan_limit = si->highest_bit; in scan_swap_map_slots()
975 while (++offset <= READ_ONCE(si->highest_bit)) { in scan_swap_map_slots()
1077 if (!si->highest_bit || !(si->flags & SWP_WRITEOK)) { in get_swap_pages()
1083 WARN(!si->highest_bit, in get_swap_pages()
2341 if (p->highest_bit) in _enable_swap_info()
2500 p->highest_bit = 0; /* cuts scans short */ in SYSCALL_DEFINE1()
2873 p->highest_bit = maxpages - 1; in read_swap_header()
3093 get_random_u32_inclusive(1, p->highest_bit); in SYSCALL_DEFINE2()