diff options
author | alc <alc@FreeBSD.org> | 2009-05-17 20:40:41 +0000 |
---|---|---|
committer | alc <alc@FreeBSD.org> | 2009-05-17 20:40:41 +0000 |
commit | 5ae82381253ecc5ff2ff12f94c4238a970d2d3fa (patch) | |
tree | 62c38c453199702e4c49370d7ee47ecde5210c07 /sys/vm | |
parent | dc942dabcf042f350216364389b0f23960f3d5fb (diff) | |
download | FreeBSD-src-5ae82381253ecc5ff2ff12f94c4238a970d2d3fa.zip FreeBSD-src-5ae82381253ecc5ff2ff12f94c4238a970d2d3fa.tar.gz |
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.
Diffstat (limited to 'sys/vm')
-rw-r--r-- | sys/vm/vm_pageout.c | 3 |
1 files changed, 2 insertions, 1 deletions
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 |