| 387 | } |
| 388 | |
| 389 | void |
| 390 | vmspace_free(struct vmspace *vm) |
| 391 | { |
| 392 | |
| 393 | WITNESS_WARN(WARN_GIANTOK | WARN_SLEEPOK, NULL, |
| 394 | "vmspace_free() called"); |
| 395 | |
| 396 | if (refcount_release(&vm->vm_refcnt)) |
| 397 | vmspace_dofree(vm); |
| 398 | } |
| 399 | |
| 400 | void |
| 401 | vmspace_exitfree(struct proc *p) |
no test coverage detected