Use vm_page_next() instead of vm_page_lookup() in exec_map_first_page()

because vm_page_next() is faster.
This commit is contained in:
Alan Cox 2010-07-02 15:50:30 +00:00
parent 9cf5198832
commit 41890423b6
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=209648

View File

@ -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)