ia64/xen-unstable

changeset 4434:88fed5c27d6d

bitkeeper revision 1.1159.258.87 (424d8879K9lhGxxSZd9bVE9LZZ2YDw)

Fix page scrubbing when fewer than 16 pages remain in the scrub list.
Signed-off-by: Keir Fraser <keir@xensource.com>
author kaf24@firebug.cl.cam.ac.uk
date Fri Apr 01 17:44:25 2005 +0000 (2005-04-01)
parents d851c864a172
children 185169ecc5e0 da63c1ee596f
files xen/common/page_alloc.c
line diff
     1.1 --- a/xen/common/page_alloc.c	Fri Apr 01 07:59:40 2005 +0000
     1.2 +++ b/xen/common/page_alloc.c	Fri Apr 01 17:44:25 2005 +0000
     1.3 @@ -651,8 +651,11 @@ static void page_scrub_softirq(void)
     1.4          
     1.5          /* Peel up to 16 pages from the list. */
     1.6          for ( i = 0; i < 16; i++ )
     1.7 -            if ( (ent = ent->next) == &page_scrub_list )
     1.8 +        {
     1.9 +            if ( ent->next == &page_scrub_list )
    1.10                  break;
    1.11 +            ent = ent->next;
    1.12 +        }
    1.13          
    1.14          /* Remove peeled pages from the list. */
    1.15          ent->next->prev = &page_scrub_list;