From e59f05e940643350bb3813e5b7f18f9fe54806f6 Mon Sep 17 00:00:00 2001 From: Justus Winter <4winter@informatik.uni-hamburg.de> Date: Fri, 10 Jul 2015 11:11:27 +0200 Subject: 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. --- vm/vm_pageout.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'vm') diff --git a/vm/vm_pageout.c b/vm/vm_pageout.c index aff823a..b13128a 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; } -- cgit v1.2.3