From 160b9af7de7a81553546fd33255be6d51d647fed Mon Sep 17 00:00:00 2001 From: alc Date: Sun, 9 Mar 2008 06:08:58 +0000 Subject: 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.) --- sys/vm/vm_fault.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'sys/vm/vm_fault.c') 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; -- cgit v1.1