o Duplicate an odd side-effect of vm_page_wire() in vm_page_allocate()
when VM_ALLOC_WIRED is specified: set the PG_MAPPED bit in flags. o In both vm_page_wire() and vm_page_allocate() add a comment saying that setting PG_MAPPED does not belong there.
This commit is contained in:
parent
9f189ade99
commit
eeeaf0fdd1
@ -935,6 +935,7 @@ loop:
|
||||
}
|
||||
if (req & VM_ALLOC_WIRED) {
|
||||
cnt.v_wire_count++;
|
||||
m->flags |= PG_MAPPED; /* XXX this does not belong here */
|
||||
m->wire_count = 1;
|
||||
} else
|
||||
m->wire_count = 0;
|
||||
@ -1253,7 +1254,7 @@ vm_page_wire(vm_page_t m)
|
||||
m->wire_count++;
|
||||
KASSERT(m->wire_count != 0, ("vm_page_wire: wire_count overflow m=%p", m));
|
||||
splx(s);
|
||||
vm_page_flag_set(m, PG_MAPPED);
|
||||
vm_page_flag_set(m, PG_MAPPED); /* XXX this does not belong here */
|
||||
}
|
||||
|
||||
/*
|
||||
|
Loading…
x
Reference in New Issue
Block a user