mm: kill vma flag VM_RESERVED and mm->reserved_vm counter
[linux-2.6-block.git] / drivers / video / smscufx.c
index 26f86428949885bf5e86ff1f801b13975ae7a293..97bd6620c36494d993b0d77877a2531be80250c3 100644 (file)
@@ -803,7 +803,6 @@ static int ufx_ops_mmap(struct fb_info *info, struct vm_area_struct *vma)
                        size = 0;
        }
 
-       vma->vm_flags |= VM_RESERVED;   /* avoid to swap out this VMA */
        return 0;
 }
 
@@ -904,7 +903,7 @@ static ssize_t ufx_ops_write(struct fb_info *info, const char __user *buf,
        result = fb_sys_write(info, buf, count, ppos);
 
        if (result > 0) {
-               int start = max((int)(offset / info->fix.line_length) - 1, 0);
+               int start = max((int)(offset / info->fix.line_length), 0);
                int lines = min((u32)((result / info->fix.line_length) + 1),
                                (u32)info->var.yres);