aboutsummaryrefslogtreecommitdiff
path: root/sys/vm/vm_map.c
diff options
context:
space:
mode:
authorIan Moffett <ian@osmora.org>2024-04-17 11:36:52 -0400
committerIan Moffett <ian@osmora.org>2024-04-17 11:36:52 -0400
commitd9eecde84f40264bc408cbfaed917f107f4a3172 (patch)
tree29ac785a88efd48a2775a036c3ab23abf12f9ba5 /sys/vm/vm_map.c
parent85c8c3cb9c6304a0317fc975ca75b69ee95b7457 (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.c2
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;
}
/*