Lines Matching refs:SWP_WRITEOK
543 if ((si->flags & (SWP_WRITEOK | SWP_PAGE_DISCARD)) ==
544 (SWP_WRITEOK | SWP_PAGE_DISCARD)) {
757 if (was_full && (si->flags & SWP_WRITEOK))
940 if (!(si->flags & SWP_WRITEOK))
1099 if (!si->highest_bit || !(si->flags & SWP_WRITEOK)) {
1108 WARN(!(si->flags & SWP_WRITEOK),
1109 "swap_info %d in list but !SWP_WRITEOK\n",
1694 if ((si->flags & SWP_WRITEOK) && scan_swap_map_slots(si, 1, 1, &entry, 0))
1720 if (!(sis->flags & SWP_WRITEOK))
1744 if (!(sis->flags & SWP_WRITEOK))
1763 if (!si || !(si->flags & SWP_WRITEOK))
1784 if (sis->flags & SWP_WRITEOK) {
2395 p->flags |= SWP_WRITEOK;
2491 if (p->flags & SWP_WRITEOK) {
2529 p->flags &= ~SWP_WRITEOK;
2622 * not hold p->lock after we cleared its SWP_WRITEOK.
3333 if ((si->flags & SWP_USED) && !(si->flags & SWP_WRITEOK))