]> err.no Git - linux-2.6/blobdiff - fs/hugetlbfs/inode.c
Merge branch 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/roland...
[linux-2.6] / fs / hugetlbfs / inode.c
index 8c1cef3bb677015bb1de08922b6b21cc35055f2e..8c41315a6e4294e782a4be7e450885447ffd79d3 100644 (file)
@@ -100,9 +100,6 @@ static int hugetlbfs_file_mmap(struct file *file, struct vm_area_struct *vma)
        loff_t len, vma_len;
        int ret;
 
-       if ((vma->vm_flags & (VM_MAYSHARE | VM_WRITE)) == VM_WRITE)
-               return -EINVAL;
-
        if (vma->vm_pgoff & (HPAGE_SIZE / PAGE_SIZE - 1))
                return -EINVAL;