* Returns a reservation level if the given page belongs to a fully populated * reservation and -1 otherwise. */
| 1154 | * reservation and -1 otherwise. |
| 1155 | */ |
| 1156 | int |
| 1157 | vm_reserv_level_iffullpop(vm_page_t m) |
| 1158 | { |
| 1159 | vm_reserv_t rv; |
| 1160 | |
| 1161 | rv = vm_reserv_from_page(m); |
| 1162 | return (rv->popcnt == VM_LEVEL_0_NPAGES ? 0 : -1); |
| 1163 | } |
| 1164 | |
| 1165 | /* |
| 1166 | * Remove a partially populated reservation from the queue. |
no test coverage detected