direct-io.hg

changeset 9152:d60392d5b818

No need to re-set vm_pgoff before calling remap_pfn_range(). It will do
it itself in cases where it is necessary.

Signed-off-by: Keir Fraser <keir@xensource.com>
author kaf24@firebug.cl.cam.ac.uk
date Mon Mar 06 20:29:39 2006 +0100 (2006-03-06)
parents 6cb33c7c8cdd
children 0ad422291688
files linux-2.6-xen-sparse/drivers/xen/xenbus/xenbus_probe.c
line diff
     1.1 --- a/linux-2.6-xen-sparse/drivers/xen/xenbus/xenbus_probe.c	Mon Mar 06 19:47:26 2006 +0100
     1.2 +++ b/linux-2.6-xen-sparse/drivers/xen/xenbus/xenbus_probe.c	Mon Mar 06 20:29:39 2006 +0100
     1.3 @@ -957,9 +957,8 @@ static int xsd_kva_mmap(struct file *fil
     1.4  	if ((size > PAGE_SIZE) || (vma->vm_pgoff != 0))
     1.5  		return -EINVAL;
     1.6  
     1.7 -	vma->vm_pgoff = mfn_to_pfn(xen_start_info->store_mfn);
     1.8 -
     1.9 -	if (remap_pfn_range(vma, vma->vm_start, vma->vm_pgoff,
    1.10 +	if (remap_pfn_range(vma, vma->vm_start,
    1.11 +			    mfn_to_pfn(xen_start_info->store_mfn),
    1.12  			    size, vma->vm_page_prot))
    1.13  		return -EAGAIN;
    1.14