git: acb71820d68b - main - vm_map_entry_delete(): fix the calculation of swap release
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Tue, 13 Jan 2026 17:06:59 UTC
The branch main has been updated by kib:
URL: https://cgit.FreeBSD.org/src/commit/?id=acb71820d68bd0dd98964240727e251bc62c92de
commit acb71820d68bd0dd98964240727e251bc62c92de
Author: Konstantin Belousov <kib@FreeBSD.org>
AuthorDate: 2026-01-13 16:22:48 +0000
Commit: Konstantin Belousov <kib@FreeBSD.org>
CommitDate: 2026-01-13 17:06:38 +0000
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
---
sys/vm/vm_map.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
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);
}
}
}