]> git.kernelconcepts.de Git - karo-tx-linux.git/commitdiff
fix mm: augment vma rbtree with rb_subtree_gap
authorMichel Lespinasse <walken@google.com>
Fri, 9 Nov 2012 06:14:34 +0000 (22:14 -0800)
committerStephen Rothwell <sfr@canb.auug.org.au>
Wed, 14 Nov 2012 04:55:28 +0000 (15:55 +1100)
Signed-off-by: Stephen Rothwell <sfr@canb.auug.org.au>
mm/mmap.c

index d12c69eaf23feb00704f2985aded210f168ad869..0b8f9d83e2e20fe9160eddac84bc459d158d6955 100644 (file)
--- a/mm/mmap.c
+++ b/mm/mmap.c
@@ -2032,7 +2032,7 @@ int expand_upwards(struct vm_area_struct *vma, unsigned long address)
                                if (vma->vm_next)
                                        vma_gap_update(vma->vm_next);
                                else
-                                       mm->highest_vm_end = address;
+                                       vma->vm_mm->highest_vm_end = address;
                                perf_event_mmap(vma);
                        }
                }