aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/drm_vm.c
diff options
context:
space:
mode:
authorDave Airlie <airlied@redhat.com>2012-02-23 06:37:26 -0500
committerDave Airlie <airlied@redhat.com>2012-03-05 06:19:08 -0500
commit966e0cdd504657333415f43de6a219197511ebff (patch)
tree62aa0782141b62ad2a0c22ba2249fa8e2d94fe5e /drivers/gpu/drm/drm_vm.c
parent81ffbbedc37c6043e5f5b123da926aa7dd8ad60a (diff)
drm: drop setting vm_file to filp
Talking to Al Viro on irc, we can see no possible reason for doing this, the upper mmap code does it. The code has been there since first import into drm tree I can find. Al tracked down this as a requirement pre 2.3.51 hasn't been needed since. Acked-by: Al Viro <viro@zeniv.linux.org.uk> Signed-off-by: Dave Airlie <airlied@redhat.com>
Diffstat (limited to 'drivers/gpu/drm/drm_vm.c')
-rw-r--r--drivers/gpu/drm/drm_vm.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/drivers/gpu/drm/drm_vm.c b/drivers/gpu/drm/drm_vm.c
index 8c03eaf41448..55cd61567812 100644
--- a/drivers/gpu/drm/drm_vm.c
+++ b/drivers/gpu/drm/drm_vm.c
@@ -519,7 +519,6 @@ static int drm_mmap_dma(struct file *filp, struct vm_area_struct *vma)
519 vma->vm_flags |= VM_RESERVED; /* Don't swap */ 519 vma->vm_flags |= VM_RESERVED; /* Don't swap */
520 vma->vm_flags |= VM_DONTEXPAND; 520 vma->vm_flags |= VM_DONTEXPAND;
521 521
522 vma->vm_file = filp; /* Needed for drm_vm_open() */
523 drm_vm_open_locked(vma); 522 drm_vm_open_locked(vma);
524 return 0; 523 return 0;
525} 524}
@@ -671,7 +670,6 @@ int drm_mmap_locked(struct file *filp, struct vm_area_struct *vma)
671 vma->vm_flags |= VM_RESERVED; /* Don't swap */ 670 vma->vm_flags |= VM_RESERVED; /* Don't swap */
672 vma->vm_flags |= VM_DONTEXPAND; 671 vma->vm_flags |= VM_DONTEXPAND;
673 672
674 vma->vm_file = filp; /* Needed for drm_vm_open() */
675 drm_vm_open_locked(vma); 673 drm_vm_open_locked(vma);
676 return 0; 674 return 0;
677} 675}