When a cached page is reactivated in vm_fault(), update the counter that

tracks the total number of reactivated pages.  (We have not been
counting reactivations by vm_fault() since revision 1.46.)

Correct a comment in vm_fault_additional_pages().

Approved by:	re (kensmith)
MFC after:	1 week
This commit is contained in:
Alan Cox 2007-07-06 21:25:21 +00:00
parent f1d2cc831c
commit 65ea29a690

View File

@ -402,13 +402,15 @@ RetryFault:;
vm_pageq_remove_nowakeup(fs.m);
if (VM_PAGE_RESOLVEQUEUE(fs.m, queue) == PQ_CACHE &&
vm_page_count_severe()) {
vm_page_activate(fs.m);
vm_page_unlock_queues();
unlock_and_deallocate(&fs);
VM_WAITPFAULT;
goto RetryFault;
if (VM_PAGE_RESOLVEQUEUE(fs.m, queue) == PQ_CACHE) {
cnt.v_reactivated++;
if (vm_page_count_severe()) {
vm_page_activate(fs.m);
vm_page_unlock_queues();
unlock_and_deallocate(&fs);
VM_WAITPFAULT;
goto RetryFault;
}
}
vm_page_unlock_queues();
@ -1335,6 +1337,6 @@ vm_fault_additional_pages(m, rbehind, rahead, marray, reqpage)
marray[i] = rtm;
}
/* return number of bytes of pages */
/* return number of pages */
return i;
}