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:
parent
62972d9b6e
commit
f58d26b291
@ -1231,16 +1231,6 @@ vm_fault_additional_pages(m, rbehind, rahead, marray, reqpage)
|
|||||||
|
|
||||||
object = m->object;
|
object = m->object;
|
||||||
pindex = m->pindex;
|
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;
|
cbehind = cahead = 0;
|
||||||
|
|
||||||
/*
|
/*
|
||||||
|
Loading…
x
Reference in New Issue
Block a user