summaryrefslogtreecommitdiffstats
path: root/sys/vm/vm_fault.c
diff options
context:
space:
mode:
authoralc <alc@FreeBSD.org>2008-03-09 06:08:58 +0000
committeralc <alc@FreeBSD.org>2008-03-09 06:08:58 +0000
commit160b9af7de7a81553546fd33255be6d51d647fed (patch)
tree889ced5e596a31bbd1b3493d992fd172d0d0c1c1 /sys/vm/vm_fault.c
parent6bb1c81980b33889e132545ea6b9e1bf3cf5922f (diff)
downloadFreeBSD-src-160b9af7de7a81553546fd33255be6d51d647fed.zip
FreeBSD-src-160b9af7de7a81553546fd33255be6d51d647fed.tar.gz
Eliminate an unnecessary test from vm_fault's delete-behind heuristic.
Specifically, since the delete-behind heuristic is never applied to a device-backed object, there is no point in checking whether each of the object's pages is fictitious. (Only device-backed objects have fictitious pages.)
Diffstat (limited to 'sys/vm/vm_fault.c')
-rw-r--r--sys/vm/vm_fault.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/vm/vm_fault.c b/sys/vm/vm_fault.c
index faa28da..7129639 100644
--- a/sys/vm/vm_fault.c
+++ b/sys/vm/vm_fault.c
@@ -508,7 +508,7 @@ readrest:
break;
if (mt->busy ||
(mt->oflags & VPO_BUSY) ||
- (mt->flags & (PG_FICTITIOUS | PG_UNMANAGED)) ||
+ (mt->flags & PG_UNMANAGED) ||
mt->hold_count ||
mt->wire_count)
continue;
OpenPOWER on IntegriCloud