From 5ae82381253ecc5ff2ff12f94c4238a970d2d3fa Mon Sep 17 00:00:00 2001 From: alc Date: Sun, 17 May 2009 20:40:41 +0000 Subject: Eliminate a pointless call to pmap_clear_reference() from vm_pageout_scan(). If the page belongs to an object with a reference count of zero, then it can't have any managed mappings on which to clear a reference bit. --- sys/vm/vm_pageout.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'sys/vm/vm_pageout.c') diff --git a/sys/vm/vm_pageout.c b/sys/vm/vm_pageout.c index 6da486e..a76aaa5 100644 --- a/sys/vm/vm_pageout.c +++ b/sys/vm/vm_pageout.c @@ -786,7 +786,8 @@ rescan0: */ if (object->ref_count == 0) { vm_page_flag_clear(m, PG_REFERENCED); - pmap_clear_reference(m); + KASSERT(!pmap_page_is_mapped(m), + ("vm_pageout_scan: page %p is mapped", m)); /* * Otherwise, if the page has been referenced while in the -- cgit v1.1