From f58d26b2913d4b64197dc60e9d6eec637c119a1b Mon Sep 17 00:00:00 2001 From: alc Date: Sun, 8 Jul 2007 19:42:52 +0000 Subject: 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) --- sys/vm/vm_fault.c | 10 ---------- 1 file changed, 10 deletions(-) (limited to 'sys/vm/vm_fault.c') diff --git a/sys/vm/vm_fault.c b/sys/vm/vm_fault.c index 2e51181..e09fbfb 100644 --- a/sys/vm/vm_fault.c +++ b/sys/vm/vm_fault.c @@ -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; /* -- cgit v1.1