]> git.ipfire.org Git - people/arne_f/kernel.git/blobdiff - mm/nommu.c
nommu: remove a superfluous check of vm_region::vm_usage
[people/arne_f/kernel.git] / mm / nommu.c
index 5e39294f8ea8d23a8417d75edae782065b29d9c7..d6dd656264a235ab90c1d1004e932bdfa369813e 100644 (file)
@@ -1441,10 +1441,9 @@ int split_vma(struct mm_struct *mm, struct vm_area_struct *vma,
 
        kenter("");
 
-       /* we're only permitted to split anonymous regions that have a single
-        * owner */
-       if (vma->vm_file ||
-           vma->vm_region->vm_usage != 1)
+       /* we're only permitted to split anonymous regions (these should have
+        * only a single usage on the region) */
+       if (vma->vm_file)
                return -ENOMEM;
 
        if (mm->map_count >= sysctl_max_map_count)