summaryrefslogtreecommitdiff
path: root/debian/patches/upstreamme0001-vm-really-fix-traversing-the-list-of-inactive-pages.patch
blob: ab1994bc6e539c49f2f598456852be1091ee4d75 (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
28
29
30
31
From c40798e0fda94a1b4178b7e620a0777bb86927be Mon Sep 17 00:00:00 2001
From: Justus Winter <4winter@informatik.uni-hamburg.de>
Date: Sun, 12 Jul 2015 13:00:07 +0200
Subject: [PATCH gnumach 1/2] vm: really fix traversing the list of inactive
 pages

Previously, the pageout code traversed the list of pages in an object
instead of 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 b13128a..51a6a0d 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->listq);
+		    m = (vm_page_t) queue_next (&m->pageq);
 		    if (!m)
 		      goto pause;
 		  }
-- 
2.1.4