Eliminate the special case handling of OBJT_DEVICE objects in

vm_fault_additional_pages() that was introduced in revision 1.47.  Then
as now, it is unnecessary because dev_pager_haspage() returns zero for
both the number of pages to read ahead and read behind, producing the
same exact behavior by vm_fault_additional_pages() as the special case
handling.

Approved by: re (rwatson)
This commit is contained in:
Alan Cox 2007-07-08 19:42:52 +00:00
parent ea11c140d0
commit d1974c0df1

View File

@ -1231,16 +1231,6 @@ vm_fault_additional_pages(m, rbehind, rahead, marray, reqpage)
object = m->object;
pindex = m->pindex;
/*
* we don't fault-ahead for device pager
*/
if (object->type == OBJT_DEVICE) {
*reqpage = 0;
marray[0] = m;
return 1;
}
cbehind = cahead = 0;
/*