|   | 
      | 
  
  
      | 
      | 
  
 
     | 
    | 
  
  
     | 
    | 
  
  
    |   | 
      | 
  
  
    | 
         
xen-changelog
[Xen-changelog] Fix page scrubbing when fewer than 16 pages remain	in th
 
ChangeSet 1.1159.256.87, 2005/04/01 18:44:25+01:00, kaf24@xxxxxxxxxxxxxxxxxxxx
        Fix page scrubbing when fewer than 16 pages remain in the scrub list.
        Signed-off-by: Keir Fraser <keir@xxxxxxxxxxxxx>
 page_alloc.c |    5 ++++-
 1 files changed, 4 insertions(+), 1 deletion(-)
diff -Nru a/xen/common/page_alloc.c b/xen/common/page_alloc.c
--- a/xen/common/page_alloc.c   2005-04-01 13:03:37 -05:00
+++ b/xen/common/page_alloc.c   2005-04-01 13:03:37 -05:00
@@ -651,8 +651,11 @@
         
         /* Peel up to 16 pages from the list. */
         for ( i = 0; i < 16; i++ )
-            if ( (ent = ent->next) == &page_scrub_list )
+        {
+            if ( ent->next == &page_scrub_list )
                 break;
+            ent = ent->next;
+        }
         
         /* Remove peeled pages from the list. */
         ent->next->prev = &page_scrub_list;
_______________________________________________
Xen-changelog mailing list
Xen-changelog@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-changelog
 |   
 
| <Prev in Thread] | 
Current Thread | 
[Next in Thread>
 |  
- [Xen-changelog] Fix page scrubbing when fewer than 16 pages remain	in the scrub list.,
BitKeeper Bot <=
 
 
 |  
  
 | 
    | 
  
  
    |   | 
    |