diff options
author | Alan Cox <alc@FreeBSD.org> | 2008-03-09 06:08:58 +0000 |
---|---|---|
committer | Alan Cox <alc@FreeBSD.org> | 2008-03-09 06:08:58 +0000 |
commit | 593e717ec93507c09c4248cd3c4a775eecf40c54 (patch) | |
tree | 889ced5e596a31bbd1b3493d992fd172d0d0c1c1 /sys | |
parent | 671585344e118c6435ad55902acdda024124324d (diff) | |
download | src-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.c | 2 |
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; |