Lines Matching refs:SWP_WRITEOK
543 if ((si->flags & (SWP_WRITEOK | SWP_PAGE_DISCARD)) == in free_cluster()
544 (SWP_WRITEOK | SWP_PAGE_DISCARD)) { in free_cluster()
731 if (was_full && (si->flags & SWP_WRITEOK)) in swap_range_free()
884 if (!(si->flags & SWP_WRITEOK)) in scan_swap_map_slots()
1073 if (!si->highest_bit || !(si->flags & SWP_WRITEOK)) { in get_swap_pages()
1082 WARN(!(si->flags & SWP_WRITEOK), in get_swap_pages()
1661 if ((si->flags & SWP_WRITEOK) && scan_swap_map_slots(si, 1, 1, &entry)) in get_swap_page_of_type()
1687 if (!(sis->flags & SWP_WRITEOK)) in swap_type_of()
1711 if (!(sis->flags & SWP_WRITEOK)) in find_first_swap()
1730 if (!si || !(si->flags & SWP_WRITEOK)) in swapdev_block()
1751 if (sis->flags & SWP_WRITEOK) { in count_swap_pages()
2324 p->flags |= SWP_WRITEOK; in _enable_swap_info()
2417 if (p->flags & SWP_WRITEOK) { in SYSCALL_DEFINE1()
2455 p->flags &= ~SWP_WRITEOK; in SYSCALL_DEFINE1()
3261 if ((si->flags & SWP_USED) && !(si->flags & SWP_WRITEOK)) in si_swapinfo()