Lines Matching refs:highest_bit
688 if (end == si->highest_bit) in swap_range_alloc()
689 WRITE_ONCE(si->highest_bit, si->highest_bit - nr_entries); in swap_range_alloc()
693 si->highest_bit = 0; in swap_range_alloc()
719 if (end > si->highest_bit) { in swap_range_free()
720 bool was_full = !si->highest_bit; in swap_range_free()
722 WRITE_ONCE(si->highest_bit, end); in swap_range_free()
761 if (si->highest_bit <= si->lowest_bit) in set_cluster_next()
764 prandom_u32_max(si->highest_bit - si->lowest_bit + 1); in set_cluster_next()
828 for (; last_in_cluster <= si->highest_bit; offset++) { in scan_swap_map_slots()
862 if (!si->highest_bit) in scan_swap_map_slots()
864 if (offset > si->highest_bit) in scan_swap_map_slots()
896 if ((n_ret == nr) || (offset >= si->highest_bit)) in scan_swap_map_slots()
932 scan_limit = si->highest_bit; in scan_swap_map_slots()
947 while (++offset <= READ_ONCE(si->highest_bit)) { in scan_swap_map_slots()
1081 if (!si->highest_bit || !(si->flags & SWP_WRITEOK)) { in get_swap_pages()
1087 WARN(!si->highest_bit, in get_swap_pages()
2678 p->highest_bit = 0; /* cuts scans short */ in SYSCALL_DEFINE1()
3046 p->highest_bit = maxpages - 1; in read_swap_header()
3275 1 + prandom_u32_max(p->highest_bit); in SYSCALL_DEFINE2()