From 9fa2e66de104f5a310d643939c8d3e547b4c29d6 Mon Sep 17 00:00:00 2001 From: Samuel Thibault Date: Fri, 27 Nov 2015 01:37:50 +0100 Subject: Fix wired accounting * vm/vm_map.c (vm_map_pageable_common): Put back wired_count decrementation into user_wired_count test. --- vm/vm_map.c | 2 ++ 1 file changed, 2 insertions(+) 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--; -- cgit v1.2.3