* Set the domain in the appropriate page level domainset. */
| 3074 | * Set the domain in the appropriate page level domainset. |
| 3075 | */ |
| 3076 | void |
| 3077 | vm_domain_set(struct vm_domain *vmd) |
| 3078 | { |
| 3079 | |
| 3080 | mtx_lock(&vm_domainset_lock); |
| 3081 | if (!vmd->vmd_minset && vm_paging_min(vmd)) { |
| 3082 | vmd->vmd_minset = 1; |
| 3083 | DOMAINSET_SET(vmd->vmd_domain, &vm_min_domains); |
| 3084 | } |
| 3085 | if (!vmd->vmd_severeset && vm_paging_severe(vmd)) { |
| 3086 | vmd->vmd_severeset = 1; |
| 3087 | DOMAINSET_SET(vmd->vmd_domain, &vm_severe_domains); |
| 3088 | } |
| 3089 | mtx_unlock(&vm_domainset_lock); |
| 3090 | } |
| 3091 | |
| 3092 | /* |
| 3093 | * Clear the domain from the appropriate page level domainset. |
no test coverage detected