direct-io.hg

changeset 13332:2c73e6e647f3

[XEN] Use local var instead of current->domain in two places.
Signed-off-by: Jan Beulich <jbeulich@novell.com>
author kfraser@localhost.localdomain
date Thu Jan 11 15:50:28 2007 +0000 (2007-01-11)
parents 866a167bcb49
children bf605c314a91
files xen/arch/x86/mm.c
line diff
     1.1 --- a/xen/arch/x86/mm.c	Thu Jan 11 15:43:38 2007 +0000
     1.2 +++ b/xen/arch/x86/mm.c	Thu Jan 11 15:50:28 2007 +0000
     1.3 @@ -1376,7 +1376,7 @@ static int mod_l2_entry(l2_pgentry_t *pl
     1.4          if ( !l2e_has_changed(ol2e, nl2e, _PAGE_PRESENT))
     1.5              return UPDATE_ENTRY(l2, pl2e, ol2e, nl2e, pfn, current);
     1.6  
     1.7 -        if ( unlikely(!get_page_from_l2e(nl2e, pfn, current->domain)) )
     1.8 +        if ( unlikely(!get_page_from_l2e(nl2e, pfn, d)) )
     1.9              return 0;
    1.10  
    1.11          if ( unlikely(!UPDATE_ENTRY(l2, pl2e, ol2e, nl2e, pfn, current)) )
    1.12 @@ -1439,7 +1439,7 @@ static int mod_l3_entry(l3_pgentry_t *pl
    1.13          if (!l3e_has_changed(ol3e, nl3e, _PAGE_PRESENT))
    1.14              return UPDATE_ENTRY(l3, pl3e, ol3e, nl3e, pfn, current);
    1.15  
    1.16 -        if ( unlikely(!get_page_from_l3e(nl3e, pfn, current->domain)) )
    1.17 +        if ( unlikely(!get_page_from_l3e(nl3e, pfn, d)) )
    1.18              return 0;
    1.19  
    1.20          if ( unlikely(!UPDATE_ENTRY(l3, pl3e, ol3e, nl3e, pfn, current)) )