diff options
Diffstat (limited to 'mm/mmap.c')
-rw-r--r-- | mm/mmap.c | 23 |
1 files changed, 0 insertions, 23 deletions
@@ -398,29 +398,6 @@ find_vma_prepare(struct mm_struct *mm, unsigned long addr, | |||
398 | return vma; | 398 | return vma; |
399 | } | 399 | } |
400 | 400 | ||
401 | static inline void | ||
402 | __vma_link_list(struct mm_struct *mm, struct vm_area_struct *vma, | ||
403 | struct vm_area_struct *prev, struct rb_node *rb_parent) | ||
404 | { | ||
405 | struct vm_area_struct *next; | ||
406 | |||
407 | vma->vm_prev = prev; | ||
408 | if (prev) { | ||
409 | next = prev->vm_next; | ||
410 | prev->vm_next = vma; | ||
411 | } else { | ||
412 | mm->mmap = vma; | ||
413 | if (rb_parent) | ||
414 | next = rb_entry(rb_parent, | ||
415 | struct vm_area_struct, vm_rb); | ||
416 | else | ||
417 | next = NULL; | ||
418 | } | ||
419 | vma->vm_next = next; | ||
420 | if (next) | ||
421 | next->vm_prev = vma; | ||
422 | } | ||
423 | |||
424 | void __vma_link_rb(struct mm_struct *mm, struct vm_area_struct *vma, | 401 | void __vma_link_rb(struct mm_struct *mm, struct vm_area_struct *vma, |
425 | struct rb_node **rb_link, struct rb_node *rb_parent) | 402 | struct rb_node **rb_link, struct rb_node *rb_parent) |
426 | { | 403 | { |