Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F147429662
D26173.1783349720.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Flag For Later
Award Token
Size
975 B
Referenced Files
None
Subscribers
None
D26173.1783349720.diff
View Options
Index: head/sys/vm/vm_page.c
===================================================================
--- head/sys/vm/vm_page.c
+++ head/sys/vm/vm_page.c
@@ -3854,18 +3854,19 @@
}
/*
- * 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))
+#ifdef INVARIANTS
+ if (m->object != NULL && !vm_page_busied(m) &&
+ !vm_object_busied(m->object))
VM_OBJECT_ASSERT_LOCKED(m->object);
+#endif
KASSERT((m->flags & PG_FICTITIOUS) == 0 ||
VPRC_WIRE_COUNT(m->ref_count) >= 1,
("vm_page_wire: fictitious page %p has zero wirings", m));
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Mon, Jul 6, 2:55 PM (22 h, 47 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
29019925
Default Alt Text
D26173.1783349720.diff (975 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