diff options
author | alc <alc@FreeBSD.org> | 2007-07-20 06:55:11 +0000 |
---|---|---|
committer | alc <alc@FreeBSD.org> | 2007-07-20 06:55:11 +0000 |
commit | 8765bda351ab8fcc0e2fcece54e27515b2bd12a9 (patch) | |
tree | 6dbe4d92e382c0626f69634767ff83d4ed84d81c /libexec | |
parent | 91c4c4d8d5b70fd9f013e29ad79440cb377b8688 (diff) | |
download | FreeBSD-src-8765bda351ab8fcc0e2fcece54e27515b2bd12a9.zip FreeBSD-src-8765bda351ab8fcc0e2fcece54e27515b2bd12a9.tar.gz |
Two changes to vm_fault_additional_pages():
1. Rewrite the backward scan. Specifically, reverse the order in which
pages are allocated so that upon failure it is never necessary to
free pages that were just allocated. Moreover, any allocated pages
can be put to use. This makes the backward scan behave just like the
forward scan.
2. Eliminate an explicit, unsynchronized check for low memory before
calling vm_page_alloc(). It serves no useful purpose. It is, in
effect, optimizing the uncommon case at the expense of the common
case.
Approved by: re (hrs)
MFC after: 3 weeks
Diffstat (limited to 'libexec')
0 files changed, 0 insertions, 0 deletions