aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKonstantin Belousov <kib@FreeBSD.org>2026-01-13 16:22:48 +0000
committerKonstantin Belousov <kib@FreeBSD.org>2026-01-13 17:06:38 +0000
commitacb71820d68bd0dd98964240727e251bc62c92de (patch)
tree3b6518625187077542b340dc9e33e51db8e616b1
parentbdaa120b30006d7ef841a966414795416ce93eea (diff)
vm_map_entry_delete(): fix the calculation of swap release
Reported and tested by: andrew Fixes: d160447129fe060b28bcd6ba429d17afdf494ff2 Sponsored by: The FreeBSD Foundation MFC after: 1 week
-rw-r--r--sys/vm/vm_map.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/vm/vm_map.c b/sys/vm/vm_map.c
index 04628f44a497..b8295bb2108d 100644
--- a/sys/vm/vm_map.c
+++ b/sys/vm/vm_map.c
@@ -3997,7 +3997,7 @@ vm_map_entry_delete(vm_map_t map, vm_map_entry_t entry)
object->size = offidxstart;
if (object->cred != NULL) {
swap_release_by_cred(ptoa(oldsize -
- ptoa(object->size)), object->cred);
+ object->size), object->cred);
}
}
}