ia64/xen-unstable

changeset 8127:4268d0ecdde7

Fix typo.

Signed-off-by: Steven Hand <steven@xensource.com>
author smh22@firebug.cl.cam.ac.uk
date Tue Nov 29 16:03:06 2005 +0100 (2005-11-29)
parents 8a00d9af3291
children ccf76e51e7e6 7acd50d945d7
files xen/arch/x86/shadow32.c xen/arch/x86/shadow_public.c
line diff
     1.1 --- a/xen/arch/x86/shadow32.c	Tue Nov 29 15:01:47 2005 +0000
     1.2 +++ b/xen/arch/x86/shadow32.c	Tue Nov 29 16:03:06 2005 +0100
     1.3 @@ -1032,6 +1032,7 @@ int __shadow_mode_enable(struct domain *
     1.4      if ( shadow_mode_refcounts(d) )
     1.5      {
     1.6          struct list_head *list_ent; 
     1.7 +        struct pfn_info *page;
     1.8  
     1.9          /*
    1.10           * Tear down its counts by disassembling its page-table-based refcounts
    1.11 @@ -1059,8 +1060,8 @@ int __shadow_mode_enable(struct domain *
    1.12          for (list_ent = d->page_list.next; list_ent != &d->page_list; 
    1.13               list_ent = page->list.next) {
    1.14              
    1.15 -            struct pfn_info *page = list_entry(list_ent, 
    1.16 -                                               struct pfn_info, list);
    1.17 +            page = list_entry(list_ent, struct pfn_info, list);
    1.18 +
    1.19              if ( !get_page_type(page, PGT_writable_page) )
    1.20                  BUG();
    1.21              put_page_type(page);
     2.1 --- a/xen/arch/x86/shadow_public.c	Tue Nov 29 15:01:47 2005 +0000
     2.2 +++ b/xen/arch/x86/shadow_public.c	Tue Nov 29 16:03:06 2005 +0100
     2.3 @@ -1082,6 +1082,7 @@ int __shadow_mode_enable(struct domain *
     2.4      if ( shadow_mode_refcounts(d) )
     2.5      {
     2.6          struct list_head *list_ent; 
     2.7 +        struct pfn_info *page;
     2.8  
     2.9          /*
    2.10           * Tear down its counts by disassembling its page-table-based refcounts
    2.11 @@ -1109,8 +1110,7 @@ int __shadow_mode_enable(struct domain *
    2.12          for (list_ent = d->page_list.next; list_ent != &d->page_list; 
    2.13               list_ent = page->list.next) {
    2.14              
    2.15 -            struct pfn_info *page = list_entry(list_ent, 
    2.16 -                                               struct pfn_info, list);
    2.17 +            page = list_entry(list_ent, struct pfn_info, list);
    2.18              if ( !get_page_type(page, PGT_writable_page) )
    2.19                  BUG();
    2.20              put_page_type(page);