Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F144500764
D54263.1775036759.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Flag For Later
Award Token
Size
759 B
Referenced Files
None
Subscribers
None
D54263.1775036759.diff
View Options
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
Details
Attached
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)
Attached To
Mode
D54263: vm_object_coalesce(): do not account holes twice
Attached
Detach File
Event Timeline
Log In to Comment