[ARM] remove useless setting of VM_RESERVED
authorRussell King <rmk@dyn-67.arm.linux.org.uk>
Sun, 11 Nov 2007 10:55:25 +0000 (10:55 +0000)
committerRussell King <rmk+kernel@arm.linux.org.uk>
Sun, 11 Nov 2007 10:55:25 +0000 (10:55 +0000)
remap_pfn_range() takes care of setting the appropriate VM_*
flags itself; there's no need for callers of remap_pfn_range()
to set VM_RESERVED before it is called.

Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
arch/arm/mm/consistent.c

index cefdf2f..333a82a 100644 (file)
@@ -322,7 +322,6 @@ static int dma_mmap(struct device *dev, struct vm_area_struct *vma,
 
                if (off < kern_size &&
                    user_size <= (kern_size - off)) {
-                       vma->vm_flags |= VM_RESERVED;
                        ret = remap_pfn_range(vma, vma->vm_start,
                                              page_to_pfn(c->vm_pages) + off,
                                              user_size << PAGE_SHIFT,