diff options
author | alc <alc@FreeBSD.org> | 2010-04-20 04:16:39 +0000 |
---|---|---|
committer | alc <alc@FreeBSD.org> | 2010-04-20 04:16:39 +0000 |
commit | 53e61968c013de230abc94448de8048fceec97d8 (patch) | |
tree | 8390e3743b98470e0786f870867ab0e8d6c3cb2b /sys/vm | |
parent | 653cff7f14a6ca024aff665ea57efbc45c03b594 (diff) | |
download | FreeBSD-src-53e61968c013de230abc94448de8048fceec97d8.zip FreeBSD-src-53e61968c013de230abc94448de8048fceec97d8.tar.gz |
Eliminate an unnecessary call to pmap_remove_all(). If a page belongs to
an object whose reference count is zero, then that page cannot possibly
be mapped.
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 d5ede5a..735beee 100644 --- a/sys/vm/vm_pageout.c +++ b/sys/vm/vm_pageout.c @@ -1122,7 +1122,8 @@ unlock_and_continue: m->act_count == 0) { page_shortage--; if (object->ref_count == 0) { - pmap_remove_all(m); + KASSERT(!pmap_page_is_mapped(m), + ("vm_pageout_scan: page %p is mapped", m)); if (m->dirty == 0) vm_page_cache(m); else |