[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [Xen-changelog] No need to re-set vm_pgoff before calling remap_pfn_range(). It will do
# HG changeset patch # User kaf24@xxxxxxxxxxxxxxxxxxxx # Node ID d60392d5b8187c98b90a56485dcc8857d834b56c # Parent 6cb33c7c8cdd68b21eeadbc8dcd8b23590718f40 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@xxxxxxxxxxxxx> diff -r 6cb33c7c8cdd -r d60392d5b818 linux-2.6-xen-sparse/drivers/xen/xenbus/xenbus_probe.c --- a/linux-2.6-xen-sparse/drivers/xen/xenbus/xenbus_probe.c Mon Mar 6 18:47:26 2006 +++ b/linux-2.6-xen-sparse/drivers/xen/xenbus/xenbus_probe.c Mon Mar 6 19:29:39 2006 @@ -957,9 +957,8 @@ if ((size > PAGE_SIZE) || (vma->vm_pgoff != 0)) return -EINVAL; - vma->vm_pgoff = mfn_to_pfn(xen_start_info->store_mfn); - - if (remap_pfn_range(vma, vma->vm_start, vma->vm_pgoff, + if (remap_pfn_range(vma, vma->vm_start, + mfn_to_pfn(xen_start_info->store_mfn), size, vma->vm_page_prot)) return -EAGAIN; _______________________________________________ Xen-changelog mailing list Xen-changelog@xxxxxxxxxxxxxxxxxxx http://lists.xensource.com/xen-changelog
|
Lists.xenproject.org is hosted with RackSpace, monitoring our |