/* set up a mapping for shared memory segments  */
int ramfs_nommu_mmap(struct file *file, struct vm_area_struct *vma)
/* set up a mapping for shared memory segments  */
int ramfs_nommu_mmap(struct file *file, struct vm_area_struct *vma)
{
	if (!(vma->vm_flags & VM_SHARED))
		return -ENOSYS;
	file_accessed(file);
	vma->vm_ops = &generic_file_vm_ops;
	return 0;
}