For some time now, the kernel and kmem objects have been ordinary

OBJT_PHYS objects.  Thus, there is no need for handling them specially
in vm_fault().  In fact, this special case handling would have led to
an assertion failure just before the call to pmap_enter().

Reviewed by:	kib@
MFC after:	6 weeks
This commit is contained in:
Alan Cox 2011-01-15 19:21:28 +00:00
parent b919d343a9
commit ff5958e785
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=217453

View File

@ -383,11 +383,8 @@ RetryFault:;
* found the page ).
*/
vm_page_busy(fs.m);
if (fs.m->valid != VM_PAGE_BITS_ALL &&
fs.m->object != kernel_object && fs.m->object != kmem_object) {
if (fs.m->valid != VM_PAGE_BITS_ALL)
goto readrest;
}
break;
}