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:
Alan Cox 2008-03-09 06:08:58 +00:00
parent 671585344e
commit 593e717ec9
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=176967

View File

@ -508,7 +508,7 @@ RetryFault:;
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;