Gitweb:     
http://git.kernel.org/git/?p=linux/kernel/git/torvalds/linux-2.6.git;a=commit;h=6d6a54d1e4c2c6fbccd128ab4e6c8817db124866
Commit:     6d6a54d1e4c2c6fbccd128ab4e6c8817db124866
Parent:     ecd744eec3aa8bbc949ec04ed3fbf7ecb2958a0e
Author:     Russell King <[EMAIL PROTECTED]>
AuthorDate: Sun Nov 11 10:55:25 2007 +0000
Committer:  Russell King <[EMAIL PROTECTED]>
CommitDate: Sun Nov 11 10:55:25 2007 +0000

    [ARM] remove useless setting of VM_RESERVED
    
    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 <[EMAIL PROTECTED]>
---
 arch/arm/mm/consistent.c |    1 -
 1 files changed, 0 insertions(+), 1 deletions(-)

diff --git a/arch/arm/mm/consistent.c b/arch/arm/mm/consistent.c
index cefdf2f..333a82a 100644
--- a/arch/arm/mm/consistent.c
+++ b/arch/arm/mm/consistent.c
@@ -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,
-
To unsubscribe from this list: send the line "unsubscribe git-commits-head" in
the body of a message to [EMAIL PROTECTED]
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Reply via email to