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:
parent
9cf5198832
commit
41890423b6
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=209648
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user