diff options
author | Ian Moffett <ian@osmora.org> | 2024-04-17 11:36:52 -0400 |
---|---|---|
committer | Ian Moffett <ian@osmora.org> | 2024-04-17 11:36:52 -0400 |
commit | d9eecde84f40264bc408cbfaed917f107f4a3172 (patch) | |
tree | 29ac785a88efd48a2775a036c3ab23abf12f9ba5 /sys/vm/vm_map.c | |
parent | 85c8c3cb9c6304a0317fc975ca75b69ee95b7457 (diff) |
kernel: vm_map: Handle map-space 'map_count' field
Signed-off-by: Ian Moffett <ian@osmora.org>
Diffstat (limited to 'sys/vm/vm_map.c')
-rw-r--r-- | sys/vm/vm_map.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/sys/vm/vm_map.c b/sys/vm/vm_map.c index cd44c08..9a2fe02 100644 --- a/sys/vm/vm_map.c +++ b/sys/vm/vm_map.c @@ -83,6 +83,7 @@ vm_mapspace_remove(struct vm_mapspace *ms, struct vm_mapping *mapping) vhash = vm_hash_vaddr(mapping->range.start); mapq = &ms->mtab[vhash % MTAB_ENTRIES]; TAILQ_REMOVE(mapq, mapping, link); + --ms->map_count; } /* @@ -133,6 +134,7 @@ vm_mapspace_insert(struct vm_mapspace *ms, struct vm_mapping *mapping) q = &ms->mtab[vhash % MTAB_ENTRIES]; TAILQ_INSERT_HEAD(q, mapping, link); + ++ms->map_count; } /* |