Lines Matching refs:SWP_WRITEOK
547 if ((si->flags & (SWP_WRITEOK | SWP_PAGE_DISCARD)) == in free_cluster()
548 (SWP_WRITEOK | SWP_PAGE_DISCARD)) { in free_cluster()
735 if (was_full && (si->flags & SWP_WRITEOK)) in swap_range_free()
887 if (!(si->flags & SWP_WRITEOK)) in scan_swap_map_slots()
1076 if (!si->highest_bit || !(si->flags & SWP_WRITEOK)) { in get_swap_pages()
1085 WARN(!(si->flags & SWP_WRITEOK), in get_swap_pages()
1646 if ((si->flags & SWP_WRITEOK) && scan_swap_map_slots(si, 1, 1, &entry)) in get_swap_page_of_type()
1672 if (!(sis->flags & SWP_WRITEOK)) in swap_type_of()
1696 if (!(sis->flags & SWP_WRITEOK)) in find_first_swap()
1715 if (!si || !(si->flags & SWP_WRITEOK)) in swapdev_block()
1736 if (sis->flags & SWP_WRITEOK) { in count_swap_pages()
2325 p->flags |= SWP_WRITEOK; in _enable_swap_info()
2418 if (p->flags & SWP_WRITEOK) { in SYSCALL_DEFINE1()
2456 p->flags &= ~SWP_WRITEOK; in SYSCALL_DEFINE1()
3262 if ((si->flags & SWP_USED) && !(si->flags & SWP_WRITEOK)) in si_swapinfo()