* Put a page in the PQ_UNSWAPPABLE holding queue. */
| 4130 | * Put a page in the PQ_UNSWAPPABLE holding queue. |
| 4131 | */ |
| 4132 | void |
| 4133 | vm_page_unswappable(vm_page_t m) |
| 4134 | { |
| 4135 | |
| 4136 | KASSERT(!vm_page_wired(m) && (m->oflags & VPO_UNMANAGED) == 0, |
| 4137 | ("page %p already unswappable", m)); |
| 4138 | |
| 4139 | vm_page_dequeue(m); |
| 4140 | vm_page_enqueue(m, PQ_UNSWAPPABLE); |
| 4141 | } |
| 4142 | |
| 4143 | /* |
| 4144 | * Release a page back to the page queues in preparation for unwiring. |
no test coverage detected