vm_map_entry_delete(): fix the calculation of swap release

Reported and tested by:	andrew
Fixes:	d160447129
Sponsored by:	The FreeBSD Foundation
MFC after:	1 week
This commit is contained in:
Konstantin Belousov
2026-01-13 18:22:48 +02:00
parent bdaa120b30
commit acb71820d6
+1 -1
View File
@@ -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);
}
}
}