-
- Downloads
mm: introduce vma_set_file function v4
Add the new vma_set_file() function to allow changing vma->vm_file with the necessary refcount dance. v2: add more users of this. v3: add missing EXPORT_SYMBOL, rebase on mmap cleanup, add comments why we drop the reference on two occasions. v4: make it clear that changing an anonymous vma is illegal. Signed-off-by:Christian König <christian.koenig@amd.com> Reviewed-by: Daniel Vetter <daniel.vetter@ffwll.ch> (v2) Reviewed-by:
Jason Gunthorpe <jgg@nvidia.com> Link: https://patchwork.freedesktop.org/patch/394773/
Showing
- drivers/dma-buf/dma-buf.c 1 addition, 2 deletionsdrivers/dma-buf/dma-buf.c
- drivers/gpu/drm/etnaviv/etnaviv_gem.c 1 addition, 3 deletionsdrivers/gpu/drm/etnaviv/etnaviv_gem.c
- drivers/gpu/drm/i915/gem/i915_gem_dmabuf.c 1 addition, 2 deletionsdrivers/gpu/drm/i915/gem/i915_gem_dmabuf.c
- drivers/gpu/drm/i915/gem/i915_gem_mman.c 3 additions, 2 deletionsdrivers/gpu/drm/i915/gem/i915_gem_mman.c
- drivers/gpu/drm/msm/msm_gem.c 1 addition, 3 deletionsdrivers/gpu/drm/msm/msm_gem.c
- drivers/gpu/drm/omapdrm/omap_gem.c 1 addition, 2 deletionsdrivers/gpu/drm/omapdrm/omap_gem.c
- drivers/gpu/drm/vgem/vgem_drv.c 1 addition, 2 deletionsdrivers/gpu/drm/vgem/vgem_drv.c
- drivers/staging/android/ashmem.c 3 additions, 3 deletionsdrivers/staging/android/ashmem.c
- include/linux/mm.h 2 additions, 0 deletionsinclude/linux/mm.h
- mm/mmap.c 12 additions, 0 deletionsmm/mmap.c
Loading
Please register or sign in to comment