Page MenuHomeFreeBSD

D54263.1775036759.diff
No OneTemporary

Size
759 B
Referenced Files
None
Subscribers
None

D54263.1775036759.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
Wed, Apr 1, 9:45 AM (3 h, 42 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
28238181
Default Alt Text
D54263.1775036759.diff (759 B)

Event Timeline