diff options
| author | Doug Moore <dougm@FreeBSD.org> | 2019-07-03 22:41:54 +0000 |
|---|---|---|
| committer | Doug Moore <dougm@FreeBSD.org> | 2019-07-03 22:41:54 +0000 |
| commit | 38e220e8dfd6ed278982361bfa6651995c8d7f7a (patch) | |
| tree | ffbb925e1f0866414b0a0b35d244febbd6cd9f5d /sys | |
| parent | dda0c86204443ea00db28b82e0336e39c0bb94b1 (diff) | |
Notes
Diffstat (limited to 'sys')
| -rw-r--r-- | sys/vm/vm_map.c | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/sys/vm/vm_map.c b/sys/vm/vm_map.c index 73cd2908dec6..078ad16d7f99 100644 --- a/sys/vm/vm_map.c +++ b/sys/vm/vm_map.c @@ -3170,9 +3170,7 @@ vm_map_wire_locked(vm_map_t map, vm_offset_t start, vm_offset_t end, int flags) rv = KERN_INVALID_ADDRESS; goto done; } - goto next_entry; - } - if (entry->wired_count == 0) { + } else if (entry->wired_count == 0) { entry->wired_count++; npages = atop(entry->end - entry->start); @@ -3250,7 +3248,6 @@ vm_map_wire_locked(vm_map_t map, vm_offset_t start, vm_offset_t end, int flags) * Check the map for holes in the specified region. * If VM_MAP_WIRE_HOLESOK was specified, skip this check. */ - next_entry: if ((flags & VM_MAP_WIRE_HOLESOK) == 0 && entry->end < end && entry->next->start > entry->end) { end = entry->end; |
