mirror of
https://git.FreeBSD.org/src.git
synced 2025-01-18 15:30:21 +00:00
Unindent vm_map_simplify_entry() after r339506.
Reviewed by: markj Sponsored by: The FreeBSD Foundation MFC after: 1 week Differential revision: https://reviews.freebsd.org/D17632
This commit is contained in:
parent
2dec2b4a34
commit
17afd2beec
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=339508
@ -1708,25 +1708,23 @@ vm_map_simplify_entry(vm_map_t map, vm_map_entry_t entry)
|
||||
return;
|
||||
|
||||
prev = entry->prev;
|
||||
if (prev != &map->header) {
|
||||
if (vm_map_mergeable_neighbors(prev, entry)) {
|
||||
vm_map_entry_unlink(map, prev);
|
||||
entry->start = prev->start;
|
||||
entry->offset = prev->offset;
|
||||
if (entry->prev != &map->header)
|
||||
vm_map_entry_resize_free(map, entry->prev);
|
||||
vm_map_merged_neighbor_dispose(map, prev);
|
||||
}
|
||||
if (prev != &map->header &&
|
||||
vm_map_mergeable_neighbors(prev, entry)) {
|
||||
vm_map_entry_unlink(map, prev);
|
||||
entry->start = prev->start;
|
||||
entry->offset = prev->offset;
|
||||
if (entry->prev != &map->header)
|
||||
vm_map_entry_resize_free(map, entry->prev);
|
||||
vm_map_merged_neighbor_dispose(map, prev);
|
||||
}
|
||||
|
||||
next = entry->next;
|
||||
if (next != &map->header) {
|
||||
if (vm_map_mergeable_neighbors(entry, next)) {
|
||||
vm_map_entry_unlink(map, next);
|
||||
entry->end = next->end;
|
||||
vm_map_entry_resize_free(map, entry);
|
||||
vm_map_merged_neighbor_dispose(map, next);
|
||||
}
|
||||
if (next != &map->header &&
|
||||
vm_map_mergeable_neighbors(entry, next)) {
|
||||
vm_map_entry_unlink(map, next);
|
||||
entry->end = next->end;
|
||||
vm_map_entry_resize_free(map, entry);
|
||||
vm_map_merged_neighbor_dispose(map, next);
|
||||
}
|
||||
}
|
||||
/*
|
||||
|
Loading…
Reference in New Issue
Block a user