Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 250865
b: refs/heads/master
c: b951bf2
h: refs/heads/master
i:
  250863: 42ff1ce
v: v3
  • Loading branch information
Namhyung Kim authored and Linus Torvalds committed May 25, 2011
1 parent e38b479 commit 9c16435
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 8 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 6038def0d11b322019d0dbb43f2a611247dfbdb6
refs/heads/master: b951bf2c4693bfc9744e11293be859209f65f579
15 changes: 8 additions & 7 deletions trunk/mm/nommu.c
Original file line number Diff line number Diff line change
Expand Up @@ -746,7 +746,6 @@ static void add_vma_to_mm(struct mm_struct *mm, struct vm_area_struct *vma)
*/
static void delete_vma_from_mm(struct vm_area_struct *vma)
{
struct vm_area_struct **pp;
struct address_space *mapping;
struct mm_struct *mm = vma->vm_mm;

Expand All @@ -769,12 +768,14 @@ static void delete_vma_from_mm(struct vm_area_struct *vma)

/* remove from the MM's tree and list */
rb_erase(&vma->vm_rb, &mm->mm_rb);
for (pp = &mm->mmap; *pp; pp = &(*pp)->vm_next) {
if (*pp == vma) {
*pp = vma->vm_next;
break;
}
}

if (vma->vm_prev)
vma->vm_prev->vm_next = vma->vm_next;
else
mm->mmap = vma->vm_next;

if (vma->vm_next)
vma->vm_next->vm_prev = vma->vm_prev;

vma->vm_mm = NULL;
}
Expand Down

0 comments on commit 9c16435

Please sign in to comment.