Author: alc
Date: Fri Jul  2 15:50:30 2010
New Revision: 209648
URL: http://svn.freebsd.org/changeset/base/209648

Log:
  Use vm_page_next() instead of vm_page_lookup() in exec_map_first_page()
  because vm_page_next() is faster.

Modified:
  head/sys/kern/kern_exec.c

Modified: head/sys/kern/kern_exec.c
==============================================================================
--- head/sys/kern/kern_exec.c   Fri Jul  2 15:02:51 2010        (r209647)
+++ head/sys/kern/kern_exec.c   Fri Jul  2 15:50:30 2010        (r209648)
@@ -935,7 +935,7 @@ exec_map_first_page(imgp)
                if (initial_pagein > object->size)
                        initial_pagein = object->size;
                for (i = 1; i < initial_pagein; i++) {
-                       if ((ma[i] = vm_page_lookup(object, i)) != NULL) {
+                       if ((ma[i] = vm_page_next(ma[i - 1])) != NULL) {
                                if (ma[i]->valid)
                                        break;
                                if ((ma[i]->oflags & VPO_BUSY) || ma[i]->busy)
_______________________________________________
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"

Reply via email to