diff options
author | Samuel Thibault <samuel.thibault@ens-lyon.org> | 2015-11-27 01:37:50 +0100 |
---|---|---|
committer | Samuel Thibault <samuel.thibault@ens-lyon.org> | 2015-11-27 01:37:50 +0100 |
commit | 9fa2e66de104f5a310d643939c8d3e547b4c29d6 (patch) | |
tree | e96f1241c984cc05425f1386f340cdb054fc3f24 /vm/vm_map.c | |
parent | 1fa22025ed71bb38dfb674e04fe1f0c6372b6a79 (diff) |
Fix wired accounting
* vm/vm_map.c (vm_map_pageable_common): Put back wired_count decrementation
into user_wired_count test.
Diffstat (limited to 'vm/vm_map.c')
-rw-r--r-- | vm/vm_map.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/vm/vm_map.c b/vm/vm_map.c index ae3ce21..cded22d 100644 --- a/vm/vm_map.c +++ b/vm/vm_map.c @@ -1519,8 +1519,10 @@ kern_return_t vm_map_pageable_common( (entry->vme_end > start)) { if (user_wire) { if (--(entry->user_wired_count) == 0) + { map->user_wired -= entry->vme_end - entry->vme_start; entry->wired_count--; + } } else { entry->wired_count--; |