projects
/
linux-2.6-microblaze.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
mm/nommu: factor out check for NOMMU shared mappings into is_nommu_shared_mapping()
[linux-2.6-microblaze.git]
/
drivers
/
char
/
mem.c
diff --git
a/drivers/char/mem.c
b/drivers/char/mem.c
index
83bf2a4
..
ffb101d
100644
(file)
--- a/
drivers/char/mem.c
+++ b/
drivers/char/mem.c
@@
-343,7
+343,7
@@
static unsigned zero_mmap_capabilities(struct file *file)
/* can't do an in-place private mapping if there's no MMU */
static inline int private_mapping_ok(struct vm_area_struct *vma)
{
- return
vma->vm_flags & VM_MAYSHARE
;
+ return
is_nommu_shared_mapping(vma->vm_flags)
;
}
#else