Lines Matching refs:highest_bit
632 if (end == si->highest_bit) in swap_range_alloc()
633 si->highest_bit -= nr_entries; in swap_range_alloc()
637 si->highest_bit = 0; in swap_range_alloc()
662 if (end > si->highest_bit) { in swap_range_free()
663 bool was_full = !si->highest_bit; in swap_range_free()
665 si->highest_bit = end; in swap_range_free()
738 for (; last_in_cluster <= si->highest_bit; offset++) { in scan_swap_map_slots()
772 if (!si->highest_bit) in scan_swap_map_slots()
774 if (offset > si->highest_bit) in scan_swap_map_slots()
807 if ((n_ret == nr) || (offset >= si->highest_bit)) in scan_swap_map_slots()
844 while (++offset <= si->highest_bit) { in scan_swap_map_slots()
975 if (!si->highest_bit || !(si->flags & SWP_WRITEOK)) { in get_swap_pages()
981 WARN(!si->highest_bit, in get_swap_pages()
2618 p->highest_bit = 0; /* cuts scans short */ in SYSCALL_DEFINE1()
2976 p->highest_bit = maxpages - 1; in read_swap_header()
3193 p->cluster_next = 1 + (prandom_u32() % p->highest_bit); in SYSCALL_DEFINE2()