Author: alc Date: Tue Apr 20 04:16:39 2010 New Revision: 206885 URL: http://svn.freebsd.org/changeset/base/206885
Log: 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. Modified: head/sys/vm/vm_pageout.c Modified: head/sys/vm/vm_pageout.c ============================================================================== --- head/sys/vm/vm_pageout.c Tue Apr 20 03:20:20 2010 (r206884) +++ head/sys/vm/vm_pageout.c Tue Apr 20 04:16:39 2010 (r206885) @@ -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 _______________________________________________ svn-src-head@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/svn-src-head To unsubscribe, send any mail to "svn-src-head-unsubscr...@freebsd.org"