direct-io.hg

changeset 5714:5c6ef0bec2df

fix build when not using grant tables for blkdev.

Signed-off-by: Steven Hand <steven@xensource.com>
author smh22@firebug.cl.cam.ac.uk
date Sun Jul 10 19:16:40 2005 +0000 (2005-07-10)
parents 25e96ea6e4c5
children dd798dd2abce
files linux-2.6.11-xen-sparse/drivers/xen/blkback/blkback.c
line diff
     1.1 --- a/linux-2.6.11-xen-sparse/drivers/xen/blkback/blkback.c	Sun Jul 10 17:32:01 2005 +0000
     1.2 +++ b/linux-2.6.11-xen-sparse/drivers/xen/blkback/blkback.c	Sun Jul 10 19:16:40 2005 +0000
     1.3 @@ -541,11 +541,12 @@ static void dispatch_rw_block_io(blkif_t
     1.4      else
     1.5          remap_prot = _PAGE_PRESENT|_PAGE_DIRTY|_PAGE_ACCESSED;
     1.6  
     1.7 +
     1.8      for ( i = 0; i < nseg; i++ )
     1.9      {
    1.10  	MULTI_update_va_mapping_otherdomain(
    1.11  	    mcl+i, MMAP_VADDR(pending_idx, i),
    1.12 -	    pfn_pte_ma(seg[i].buf >> PAGE_SHIFT, remap_prot),
    1.13 +	    pfn_pte_ma(seg[i].buf >> PAGE_SHIFT, __pgprot(remap_prot)),
    1.14  	    0, blkif->domid);
    1.15  #ifdef CONFIG_XEN_BLKDEV_TAP_BE
    1.16          if ( blkif->is_blktap )