]> Pileus Git - ~andy/linux/blobdiff - drivers/video/igafb.c
[PATCH] mm: remove VM_LOCKED before remap_pfn_range and drop VM_SHM
[~andy/linux] / drivers / video / igafb.c
index 6b88050d21bfbb4ae37bd96dbab85fcda267c5b8..8a0c2d3d3805623ea891d4cc4dea6fa589e1c35d 100644 (file)
@@ -232,9 +232,6 @@ static int igafb_mmap(struct fb_info *info,
 
        size = vma->vm_end - vma->vm_start;
 
-       /* To stop the swapper from even considering these pages. */
-       vma->vm_flags |= (VM_SHM | VM_LOCKED);
-
        /* Each page, see which map applies */
        for (page = 0; page < size; ) {
                map_size = 0;