aboutsummaryrefslogtreecommitdiff
path: root/sys
diff options
context:
space:
mode:
authorAlan Cox <alc@FreeBSD.org>2008-03-09 06:08:58 +0000
committerAlan Cox <alc@FreeBSD.org>2008-03-09 06:08:58 +0000
commit593e717ec93507c09c4248cd3c4a775eecf40c54 (patch)
tree889ced5e596a31bbd1b3493d992fd172d0d0c1c1 /sys
parent671585344e118c6435ad55902acdda024124324d (diff)
downloadsrc-593e717ec93507c09c4248cd3c4a775eecf40c54.tar.gz
src-593e717ec93507c09c4248cd3c4a775eecf40c54.zip
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.)
Notes
Notes: svn path=/head/; revision=176967
Diffstat (limited to 'sys')
-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 faa28da7ae61..71296391f509 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;