We can have no PV entry here if the previous mapping was unmanaged, and the new

one is unmanaged too, so update the KASSERT to reflect this.
This commit is contained in:
Olivier Houchard 2006-12-01 12:29:55 +00:00
parent c949309983
commit 5b3e7496e6

View File

@ -3448,7 +3448,8 @@ do_l2b_alloc:
else if (!pve &&
!(m->flags & (PG_UNMANAGED | PG_FICTITIOUS)))
pve = pmap_get_pv_entry();
KASSERT(pve != NULL, ("No pv"));
KASSERT(pve != NULL || m->flags & (PG_UNMANAGED |
PG_FICTITIOUS), ("No pv"));
oflags = pve->pv_flags;
/*