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.
This commit is contained in:
Alan Cox 2010-04-20 04:16:39 +00:00
parent 0d526fa829
commit 5d4a7b7945
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=206885

View file

@ -1122,7 +1122,8 @@ vm_pageout_scan(int pass)
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