Remove unneeded page lock around vm_page_insert().

Submitted by:	alc
This commit is contained in:
kib 2013-07-06 04:46:42 +00:00
parent 3ff4188a7e
commit e230264804

View File

@ -220,9 +220,7 @@ reserve:
}
m->valid = VM_PAGE_BITS_ALL;
*mres = m;
vm_page_lock(m);
vm_page_insert(m, vm_obj, OFF_TO_IDX(offset));
vm_page_unlock(m);
vm_page_busy(m);
if (oldm != NULL) {