Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F131892340
D22868.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
1 KB
Referenced Files
None
Subscribers
None
D22868.diff
View Options
Index: head/sys/vm/vm_page.c
===================================================================
--- head/sys/vm/vm_page.c
+++ head/sys/vm/vm_page.c
@@ -1724,6 +1724,9 @@
mnew->pindex = pindex;
atomic_set_int(&mnew->ref_count, VPRC_OBJREF);
mold = vm_radix_replace(&object->rtree, mnew);
+ KASSERT((mold->oflags & VPO_UNMANAGED) ==
+ (mnew->oflags & VPO_UNMANAGED),
+ ("vm_page_replace: mismatched VPO_UNMANAGED"));
/* Keep the resident page list in sorted order. */
TAILQ_INSERT_AFTER(&object->memq, mold, mnew, listq);
@@ -2684,8 +2687,7 @@
KASSERT(pmap_page_get_memattr(m) ==
VM_MEMATTR_DEFAULT,
("page %p has an unexpected memattr", m));
- KASSERT((m->oflags & (VPO_SWAPINPROG |
- VPO_SWAPSLEEP | VPO_UNMANAGED)) == 0,
+ KASSERT(m->oflags == 0,
("page %p has unexpected oflags", m));
/* Don't care: PGA_NOSYNC. */
if (!vm_page_none_valid(m)) {
@@ -2753,6 +2755,7 @@
~PGA_QUEUE_STATE_MASK;
KASSERT(m_new->oflags == VPO_UNMANAGED,
("page %p is managed", m_new));
+ m_new->oflags = 0;
pmap_copy_page(m, m_new);
m_new->valid = m->valid;
m_new->dirty = m->dirty;
@@ -3676,6 +3679,10 @@
panic("vm_page_free_prep: freeing shared busy page %p", m);
if (m->object != NULL) {
+ KASSERT(((m->oflags & VPO_UNMANAGED) != 0) ==
+ ((m->object->flags & OBJ_UNMANAGED) != 0),
+ ("vm_page_free_prep: managed flag mismatch for page %p",
+ m));
vm_page_object_remove(m);
/*
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Mon, Oct 13, 12:46 AM (6 h, 17 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
23648161
Default Alt Text
D22868.diff (1 KB)
Attached To
Mode
D22868: Fix VPO_UNMANAGED handling in vm_page_reclaim_run().
Attached
Detach File
Event Timeline
Log In to Comment