Lines Matching refs:SWP_WRITEOK
549 if ((si->flags & (SWP_WRITEOK | SWP_PAGE_DISCARD)) == in free_cluster()
550 (SWP_WRITEOK | SWP_PAGE_DISCARD)) { in free_cluster()
736 if (was_full && (si->flags & SWP_WRITEOK)) in swap_range_free()
888 if (!(si->flags & SWP_WRITEOK)) in scan_swap_map_slots()
1077 if (!si->highest_bit || !(si->flags & SWP_WRITEOK)) { in get_swap_pages()
1086 WARN(!(si->flags & SWP_WRITEOK), in get_swap_pages()
1629 if ((si->flags & SWP_WRITEOK) && scan_swap_map_slots(si, 1, 1, &entry)) in get_swap_page_of_type()
1655 if (!(sis->flags & SWP_WRITEOK)) in swap_type_of()
1679 if (!(sis->flags & SWP_WRITEOK)) in find_first_swap()
1698 if (!si || !(si->flags & SWP_WRITEOK)) in swapdev_block()
1719 if (sis->flags & SWP_WRITEOK) { in count_swap_pages()
2323 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()
3249 if ((si->flags & SWP_USED) && !(si->flags & SWP_WRITEOK)) in si_swapinfo()