Page MenuHomeFreeBSD

D54263.id168756.diff
No OneTemporary

D54263.id168756.diff

diff --git a/sys/vm/vm_object.c b/sys/vm/vm_object.c
--- a/sys/vm/vm_object.c
+++ b/sys/vm/vm_object.c
@@ -2223,20 +2223,9 @@
* 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.

File Metadata

Mime Type
text/plain
Expires
Thu, Sep 3, 8:42 AM (4 h, 23 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
38021821
Default Alt Text
D54263.id168756.diff (759 B)

Event Timeline