Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F160908095
D26173.id76171.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
868 B
Referenced Files
None
Subscribers
None
D26173.id76171.diff
View Options
Index: sys/vm/vm_page.c
===================================================================
--- sys/vm/vm_page.c
+++ sys/vm/vm_page.c
@@ -3854,17 +3854,16 @@
}
/*
- * Mark this page as wired down, preventing reclamation by the page daemon
- * or when the containing object is destroyed.
+ * Mark this page as wired down. For managed pages, this prevents reclamation
+ * by the page daemon, or when the containing object, if any, is destroyed.
*/
void
vm_page_wire(vm_page_t m)
{
u_int old;
- KASSERT(m->object != NULL,
- ("vm_page_wire: page %p does not belong to an object", m));
- if (!vm_page_busied(m) && !vm_object_busied(m->object))
+ if (m->object != NULL && !vm_page_busied(m) &&
+ !vm_object_busied(m->object))
VM_OBJECT_ASSERT_LOCKED(m->object);
KASSERT((m->flags & PG_FICTITIOUS) == 0 ||
VPRC_WIRE_COUNT(m->ref_count) >= 1,
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Mon, Jun 29, 11:05 PM (2 h, 58 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
34475567
Default Alt Text
D26173.id76171.diff (868 B)
Attached To
Mode
D26173: Permit vm_page_wire() for pages not belonging to an object.
Attached
Detach File
Event Timeline
Log In to Comment