diff options
author | alc <alc@FreeBSD.org> | 2007-07-08 19:42:52 +0000 |
---|---|---|
committer | alc <alc@FreeBSD.org> | 2007-07-08 19:42:52 +0000 |
commit | f58d26b2913d4b64197dc60e9d6eec637c119a1b (patch) | |
tree | 541719a5a41ccbb7f757f6ecb8530ad1cc8877b1 /sys | |
parent | 62972d9b6ee22bbc2faaa50af6f7a0e18bda5470 (diff) | |
download | FreeBSD-src-f58d26b2913d4b64197dc60e9d6eec637c119a1b.zip FreeBSD-src-f58d26b2913d4b64197dc60e9d6eec637c119a1b.tar.gz |
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)
Diffstat (limited to 'sys')
-rw-r--r-- | sys/vm/vm_fault.c | 10 |
1 files changed, 0 insertions, 10 deletions
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; /* |