diff options
Diffstat (limited to 'mm/mmap.c')
-rw-r--r-- | mm/mmap.c | 22 |
1 files changed, 11 insertions, 11 deletions
@@ -199,14 +199,14 @@ static void __remove_shared_vm_struct(struct vm_area_struct *vma, | |||
199 | 199 | ||
200 | flush_dcache_mmap_lock(mapping); | 200 | flush_dcache_mmap_lock(mapping); |
201 | if (unlikely(vma->vm_flags & VM_NONLINEAR)) | 201 | if (unlikely(vma->vm_flags & VM_NONLINEAR)) |
202 | list_del_init(&vma->shared.vm_set.list); | 202 | list_del_init(&vma->shared.nonlinear); |
203 | else | 203 | else |
204 | vma_prio_tree_remove(vma, &mapping->i_mmap); | 204 | vma_interval_tree_remove(vma, &mapping->i_mmap); |
205 | flush_dcache_mmap_unlock(mapping); | 205 | flush_dcache_mmap_unlock(mapping); |
206 | } | 206 | } |
207 | 207 | ||
208 | /* | 208 | /* |
209 | * Unlink a file-based vm structure from its prio_tree, to hide | 209 | * Unlink a file-based vm structure from its interval tree, to hide |
210 | * vma from rmap and vmtruncate before freeing its page tables. | 210 | * vma from rmap and vmtruncate before freeing its page tables. |
211 | */ | 211 | */ |
212 | void unlink_file_vma(struct vm_area_struct *vma) | 212 | void unlink_file_vma(struct vm_area_struct *vma) |
@@ -411,7 +411,7 @@ static void __vma_link_file(struct vm_area_struct *vma) | |||
411 | if (unlikely(vma->vm_flags & VM_NONLINEAR)) | 411 | if (unlikely(vma->vm_flags & VM_NONLINEAR)) |
412 | vma_nonlinear_insert(vma, &mapping->i_mmap_nonlinear); | 412 | vma_nonlinear_insert(vma, &mapping->i_mmap_nonlinear); |
413 | else | 413 | else |
414 | vma_prio_tree_insert(vma, &mapping->i_mmap); | 414 | vma_interval_tree_insert(vma, &mapping->i_mmap); |
415 | flush_dcache_mmap_unlock(mapping); | 415 | flush_dcache_mmap_unlock(mapping); |
416 | } | 416 | } |
417 | } | 417 | } |
@@ -449,7 +449,7 @@ static void vma_link(struct mm_struct *mm, struct vm_area_struct *vma, | |||
449 | 449 | ||
450 | /* | 450 | /* |
451 | * Helper for vma_adjust() in the split_vma insert case: insert a vma into the | 451 | * Helper for vma_adjust() in the split_vma insert case: insert a vma into the |
452 | * mm's list and rbtree. It has already been inserted into the prio_tree. | 452 | * mm's list and rbtree. It has already been inserted into the interval tree. |
453 | */ | 453 | */ |
454 | static void __insert_vm_struct(struct mm_struct *mm, struct vm_area_struct *vma) | 454 | static void __insert_vm_struct(struct mm_struct *mm, struct vm_area_struct *vma) |
455 | { | 455 | { |
@@ -491,7 +491,7 @@ int vma_adjust(struct vm_area_struct *vma, unsigned long start, | |||
491 | struct vm_area_struct *next = vma->vm_next; | 491 | struct vm_area_struct *next = vma->vm_next; |
492 | struct vm_area_struct *importer = NULL; | 492 | struct vm_area_struct *importer = NULL; |
493 | struct address_space *mapping = NULL; | 493 | struct address_space *mapping = NULL; |
494 | struct prio_tree_root *root = NULL; | 494 | struct rb_root *root = NULL; |
495 | struct anon_vma *anon_vma = NULL; | 495 | struct anon_vma *anon_vma = NULL; |
496 | struct file *file = vma->vm_file; | 496 | struct file *file = vma->vm_file; |
497 | long adjust_next = 0; | 497 | long adjust_next = 0; |
@@ -554,7 +554,7 @@ again: remove_next = 1 + (end > next->vm_end); | |||
554 | mutex_lock(&mapping->i_mmap_mutex); | 554 | mutex_lock(&mapping->i_mmap_mutex); |
555 | if (insert) { | 555 | if (insert) { |
556 | /* | 556 | /* |
557 | * Put into prio_tree now, so instantiated pages | 557 | * Put into interval tree now, so instantiated pages |
558 | * are visible to arm/parisc __flush_dcache_page | 558 | * are visible to arm/parisc __flush_dcache_page |
559 | * throughout; but we cannot insert into address | 559 | * throughout; but we cannot insert into address |
560 | * space until vma start or end is updated. | 560 | * space until vma start or end is updated. |
@@ -582,9 +582,9 @@ again: remove_next = 1 + (end > next->vm_end); | |||
582 | 582 | ||
583 | if (root) { | 583 | if (root) { |
584 | flush_dcache_mmap_lock(mapping); | 584 | flush_dcache_mmap_lock(mapping); |
585 | vma_prio_tree_remove(vma, root); | 585 | vma_interval_tree_remove(vma, root); |
586 | if (adjust_next) | 586 | if (adjust_next) |
587 | vma_prio_tree_remove(next, root); | 587 | vma_interval_tree_remove(next, root); |
588 | } | 588 | } |
589 | 589 | ||
590 | vma->vm_start = start; | 590 | vma->vm_start = start; |
@@ -597,8 +597,8 @@ again: remove_next = 1 + (end > next->vm_end); | |||
597 | 597 | ||
598 | if (root) { | 598 | if (root) { |
599 | if (adjust_next) | 599 | if (adjust_next) |
600 | vma_prio_tree_insert(next, root); | 600 | vma_interval_tree_insert(next, root); |
601 | vma_prio_tree_insert(vma, root); | 601 | vma_interval_tree_insert(vma, root); |
602 | flush_dcache_mmap_unlock(mapping); | 602 | flush_dcache_mmap_unlock(mapping); |
603 | } | 603 | } |
604 | 604 | ||