From fff3f9c1d3fb958023587a24f9ff79a91867ac4f Mon Sep 17 00:00:00 2001 From: David Howells Date: Fri, 15 Jan 2010 17:01:34 -0800 Subject: [PATCH] --- yaml --- r: 179360 b: refs/heads/master c: 779c10232ceb11c1b259232c4845cfb2850287b7 h: refs/heads/master v: v3 --- [refs] | 2 +- trunk/mm/nommu.c | 7 +++---- 2 files changed, 4 insertions(+), 5 deletions(-) diff --git a/[refs] b/[refs] index 1ec0e883912d..2a48704e19bb 100644 --- a/[refs] +++ b/[refs] @@ -1,2 +1,2 @@ --- -refs/heads/master: 1e2ae599d37e60958c03ca5e46b1f657619a30cd +refs/heads/master: 779c10232ceb11c1b259232c4845cfb2850287b7 diff --git a/trunk/mm/nommu.c b/trunk/mm/nommu.c index 5e39294f8ea8..d6dd656264a2 100644 --- a/trunk/mm/nommu.c +++ b/trunk/mm/nommu.c @@ -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)