mm/nommu: factor out check for NOMMU shared mappings into is_nommu_shared_mapping()
[linux-2.6-microblaze.git] / drivers / char / mem.c
index 83bf2a4..ffb101d 100644 (file)
@@ -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