| 689 | #endif /* INVARIANTS */ |
| 690 | |
| 691 | void |
| 692 | _vm_map_unlock(vm_map_t map, const char *file, int line) |
| 693 | { |
| 694 | |
| 695 | VM_MAP_UNLOCK_CONSISTENT(map); |
| 696 | if (map->system_map) { |
| 697 | #ifndef UMA_MD_SMALL_ALLOC |
| 698 | if (map == kernel_map && (map->flags & MAP_REPLENISH) != 0) { |
| 699 | uma_prealloc(kmapentzone, 1); |
| 700 | map->flags &= ~MAP_REPLENISH; |
| 701 | } |
| 702 | #endif |
| 703 | mtx_unlock_flags_(&map->system_mtx, 0, file, line); |
| 704 | } else { |
| 705 | sx_xunlock_(&map->lock, file, line); |
| 706 | vm_map_process_deferred(); |
| 707 | } |
| 708 | } |
| 709 | |
| 710 | void |
| 711 | _vm_map_lock_read(vm_map_t map, const char *file, int line) |
nothing calls this directly
no test coverage detected