summaryrefslogtreecommitdiff
path: root/debian/patches/upstreamme0007-vm-fix-traversing-the-list-of-inactive-pages.patch
blob: 51ada71b3f31cbe6643d20d61a9af37b73267917 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
From 012439120c8eda8f4e94f74ff69659a60cedca77 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: [PATCH gnumach 07/10] vm: fix traversing the list of inactive pages

* 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(-)

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;
 		  }
-- 
2.1.4