projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
ecd744e
)
[ARM] remove useless setting of VM_RESERVED
author
Russell King
<rmk@dyn-67.arm.linux.org.uk>
Sun, 11 Nov 2007 10:55:25 +0000
(10:55 +0000)
committer
Russell 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
patch
|
blob
|
history
diff --git
a/arch/arm/mm/consistent.c
b/arch/arm/mm/consistent.c
index cefdf2f9f26e2b758fd7b96ecafded6fa8b73ff3..333a82a3717e07daa8979986480579b943507e53 100644
(file)
--- 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,