diff options
Diffstat (limited to 'sys/vm')
-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; } /* |