[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Xen-changelog] Fix page scrubbing when fewer than 16 pages remain in the scrub list.



ChangeSet 1.1821, 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:05:14 -05:00
+++ b/xen/common/page_alloc.c   2005-04-01 13:05:14 -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


 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.