|   | 
      | 
  
  
      | 
      | 
  
 
     | 
    | 
  
  
     | 
    | 
  
  
    |   | 
      | 
  
  
    | 
         
xen-devel
Re: [Xen-devel] Re: [PATCH 5/7 v2] xen-gntdev: Add reference	counting to
 
> -static int gntdev_del_map(struct grant_map *map)
> +static void gntdev_put_map(struct grant_map *map)
Aha.. here it is.
.. snip ..
> @@ -606,6 +594,8 @@ static int gntdev_mmap(struct file *flip, struct 
> vm_area_struct *vma)
>               goto unlock_out;
>       }
>  
> +     atomic_inc(&map->users);
> +
>       vma->vm_ops = &gntdev_vmops;
>  
>       vma->vm_flags |= VM_RESERVED;
> @@ -614,6 +604,7 @@ static int gntdev_mmap(struct file *flip, struct 
> vm_area_struct *vma)
>       vma->vm_flags |= VM_PFNMAP;
>  
>       vma->vm_private_data = map;
> +
No need for that.
_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-devel
 
 |   
 
| <Prev in Thread] | 
Current Thread | 
[Next in Thread> |  
- Re: [Xen-devel] Re: [PATCH 5/7 v2] xen-gntdev: Add reference	counting to maps,
Konrad Rzeszutek Wilk <=
  
 |  
  
 | 
    | 
  
  
    |   | 
    |