summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRichard Braun <rbraun@sceen.net>2016-11-30 21:14:41 +0100
committerRichard Braun <rbraun@sceen.net>2016-11-30 21:15:14 +0100
commitb961f2ffb2a2c6bee21fc221d62cec85f5faa453 (patch)
tree3bcd4c09a55c653cc79df711570a41a124aaf138
parent4603229779d2ac08f52028f31108c90c853bae0d (diff)
VM: fix eviction logic error
* vm/vm_page.c (vm_page_evict): Test both vm_page_external_pagedout and vm_page_laundry_count in order to determine there was "no pageout".
-rw-r--r--vm/vm_page.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/vm/vm_page.c b/vm/vm_page.c
index 567f23f3..433c3034 100644
--- a/vm/vm_page.c
+++ b/vm/vm_page.c
@@ -2036,7 +2036,7 @@ again:
* Keep in mind eviction may not cause pageouts, since non-precious
* clean pages are simply released.
*/
- if ((vm_page_external_pagedout == 0) || (vm_page_laundry_count == 0)) {
+ if ((vm_page_external_pagedout == 0) && (vm_page_laundry_count == 0)) {
/*
* No pageout, but some clean pages were freed. Start a complete
* scan again without waiting.