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.)
This commit is contained in:
alc 2008-03-09 06:08:58 +00:00
parent 6bb1c81980
commit 160b9af7de

View File

@ -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;