aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKonstantin Belousov <kib@FreeBSD.org>2025-12-20 16:09:38 +0000
committerKonstantin Belousov <kib@FreeBSD.org>2025-12-30 03:24:35 +0000
commitefcb109940ca607130af4498e1e33b54c58ba43c (patch)
tree95333777a8ce94e8899d41e44e8fdb6f65627250
parent8e951583936980909d34a6104ace781541fb62b1 (diff)
vm_object_coalesce(): remove commented out code
Reviewed by: alc, markj Sponsored by: The FreeBSD Foundation MFC after: 1 week Differential revision: https://reviews.freebsd.org/D54263
-rw-r--r--sys/vm/vm_object.c13
1 files changed, 1 insertions, 12 deletions
diff --git a/sys/vm/vm_object.c b/sys/vm/vm_object.c
index 117900135ac3..a8ec98f2c98d 100644
--- a/sys/vm/vm_object.c
+++ b/sys/vm/vm_object.c
@@ -2223,20 +2223,9 @@ vm_object_coalesce(vm_object_t prev_object, vm_ooffset_t prev_offset,
* Remove any pages that may still be in the object from a previous
* deallocation.
*/
- if (next_pindex < prev_object->size) {
+ if (next_pindex < prev_object->size)
vm_object_page_remove(prev_object, next_pindex, next_pindex +
next_size, 0);
-#if 0
- if (prev_object->cred != NULL) {
- KASSERT(prev_object->charge >=
- ptoa(prev_object->size - next_pindex),
- ("object %p overcharged 1 %jx %jx", prev_object,
- (uintmax_t)next_pindex, (uintmax_t)next_size));
- prev_object->charge -= ptoa(prev_object->size -
- next_pindex);
- }
-#endif
- }
/*
* Extend the object if necessary.