summaryrefslogtreecommitdiff
path: root/vm
diff options
context:
space:
mode:
authorJustus Winter <4winter@informatik.uni-hamburg.de>2015-07-10 11:11:27 +0200
committerJustus Winter <4winter@informatik.uni-hamburg.de>2015-07-11 13:35:13 +0200
commite59f05e940643350bb3813e5b7f18f9fe54806f6 (patch)
tree67a83fb2e30e00f3371942ccf7938171be4f688c /vm
parentef0ae1b884891af08626e8e52d62fdb02ec23ee1 (diff)
vm: fix traversing the list of inactive pages
Previously, the pageout code traversed the hash table chain instead of the list of inactive pages. The code merely compiled by accident, because the `struct page' also has a field called `next' for the hash table chain. * vm/vm_pageout.c (vm_pageout_scan): Fix traversing the list of inactive pages.
Diffstat (limited to 'vm')
-rw-r--r--vm/vm_pageout.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/vm/vm_pageout.c b/vm/vm_pageout.c
index aff823ab..b13128a4 100644
--- a/vm/vm_pageout.c
+++ b/vm/vm_pageout.c
@@ -693,7 +693,7 @@ void vm_pageout_scan(void)
if (want_pages || m->external)
break;
- m = (vm_page_t) queue_next (m);
+ m = (vm_page_t) queue_next (&m->listq);
if (!m)
goto pause;
}